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

Anselm Busse git at videolan.org
Fri Aug 13 16:08:46 EEST 2021


ffmpeg | branch: master | Anselm Busse <anselm.busse at outlook.com> | Wed Jul 21 20:00:18 2021 +0200| [55d9d6767967794edcdd6e1bbd8840fc6f4e9315] | committer: Rick Kern

Fix for bug #9231: B-frames parameter is ignored in videotoolboxenc

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 at outlook.com>
Signed-off-by: Rick Kern <kernrj at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55d9d6767967794edcdd6e1bbd8840fc6f4e9315
---

 libavcodec/videotoolboxenc.c | 1 -
 1 file changed, 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list