obs-ffmpeg: Set max AMF consecutive bframes to 3 by default

The AMF documentation states that this value is recommended to be 3 if
the bframe picture pattern property is a non-zero value.
master
Jim 2022-08-27 09:31:09 -07:00
parent e5a1ef91e3
commit 4c3e671819
1 changed files with 1 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ static bool amf_avc_init(void *data, obs_data_t *settings)
check_preset_compatibility(enc, preset);
if (enc->bframes_supported) {
set_avc_property(enc, MAX_CONSECUTIVE_BPICTURES, bf);
set_avc_property(enc, MAX_CONSECUTIVE_BPICTURES, 3);
set_avc_property(enc, B_PIC_PATTERN, bf);
} else if (bf != 0) {