diff options
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 8093746c646..41ebf8196d2 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -443,7 +443,8 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel): layout.prop(ffmpeg, "use_lossless_output") # Output quality - if needs_codec and ffmpeg.codec in {'H264', 'MPEG4'}: + use_crf = needs_codec and ffmpeg.codec in {'H264', 'MPEG4'} + if use_crf: layout.prop(ffmpeg, "constant_rate_factor") # Encoding speed @@ -457,7 +458,7 @@ class RENDER_PT_encoding(RenderButtonsPanel, Panel): pbox.prop(ffmpeg, "max_b_frames", text="") pbox.enabled = ffmpeg.use_max_b_frames - if ffmpeg.constant_rate_factor == 'NONE': + if not use_crf or ffmpeg.constant_rate_factor == 'NONE': split = layout.split() col = split.column() col.label(text="Rate:") |