OSDN Git Service

MacGui: When using x264 and rf 0 is selected show "Warning: Lossless" in the field...
[handbrake-jp/handbrake-jp-git.git] / macosx / Controller.m
index 3764e18..aa0299b 100644 (file)
@@ -4802,6 +4802,12 @@ the user is using "Custom" settings by determining the sender*/
     {
         [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f", sliderRfInverse]];
     }
+    /* Show a warning if x264 and rf 0 which is lossless */
+    if ([[fVidEncoderPopUp selectedItem] tag] == HB_VCODEC_X264 && sliderRfInverse == 0.0)
+    {
+        [fVidQualityRFField setStringValue: [NSString stringWithFormat: @"%.2f (Warning: Lossless)", sliderRfInverse]];
+    }
+    
     [self customSettingUsed: sender];
 }