diff mbox series

[FFmpeg-devel] Fix for bug #9231: B-frames parameter is ignored in videotoolboxenc

Message ID AS8P193MB1447841AFF31CC635506639F98E39@AS8P193MB1447.EURP193.PROD.OUTLOOK.COM
State New
Headers show
Series [FFmpeg-devel] Fix for bug #9231: B-frames parameter is ignored in videotoolboxenc
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anselm Busse July 21, 2021, 6 p.m. UTC
This commit fixes the bug as report in https://trac.ffmpeg.org/ticket/9231 by removing the line that overwrites the user settings for max_b_frames.

Signed-off-by: Anselm Busse <anselm.busse@outlook.com>
---
 libavcodec/videotoolboxenc.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 4eaabed5d8..8dfd6e3d0c 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -1398,7 +1398,6 @@  static int vtenc_configure_encoder(AVCodecContext *avctx)
     }
 
     vtctx->codec_id = avctx->codec_id;
-    avctx->max_b_frames = 16;
 
     if (vtctx->codec_id == AV_CODEC_ID_H264) {
         vtctx->get_param_set_func = CMVideoFormatDescriptionGetH264ParameterSetAtIndex;