summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorAnselm Busse <anselm.busse@outlook.com>2021-07-21 20:00:18 +0200
committerRick Kern <kernrj@gmail.com>2021-08-13 08:57:27 -0400
commit55d9d6767967794edcdd6e1bbd8840fc6f4e9315 (patch)
tree3f4827d60a040c61314dc99a483605d1d878b363 /libavcodec/videotoolboxenc.c
parent115f5e803502451ac64fa698730923299e5acc4e (diff)
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@outlook.com> Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c1
1 files changed, 0 insertions, 1 deletions
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;