Browse Source

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.
Jim 3 years ago
parent
commit
4c3e671819
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/obs-ffmpeg/texture-amf.cpp

+ 1 - 1
plugins/obs-ffmpeg/texture-amf.cpp

@@ -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) {