Fix broken split layout in encoding options
The "Max B-frames" options were misplaced. Uses the usual layout of a checkbox together with the number button now. Reported by Peter Fog (@tintwotin), thanks!
This commit is contained in:
@@ -367,11 +367,11 @@ class RENDER_PT_encoding_video(RenderOutputButtonsPanel, Panel):
|
|||||||
# I-frames
|
# I-frames
|
||||||
layout.prop(ffmpeg, "gopsize")
|
layout.prop(ffmpeg, "gopsize")
|
||||||
# B-Frames
|
# B-Frames
|
||||||
split = layout.split(factor=0.5)
|
row = layout.row(align=True, heading="Max B-frames")
|
||||||
split.prop(ffmpeg, "use_max_b_frames", text="Max B-frames")
|
row.prop(ffmpeg, "use_max_b_frames", text="")
|
||||||
pbox = split.column()
|
sub = row.row(align=True)
|
||||||
pbox.prop(ffmpeg, "max_b_frames", text="")
|
sub.active = ffmpeg.use_max_b_frames
|
||||||
pbox.enabled = ffmpeg.use_max_b_frames
|
sub.prop(ffmpeg, "max_b_frames", text="")
|
||||||
|
|
||||||
if not use_crf or ffmpeg.constant_rate_factor == 'NONE':
|
if not use_crf or ffmpeg.constant_rate_factor == 'NONE':
|
||||||
col = layout.column()
|
col = layout.column()
|
||||||
|
Reference in New Issue
Block a user