You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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>
This commit is contained in:
@@ -1398,7 +1398,6 @@ static int vtenc_configure_encoder(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
vtctx->codec_id = avctx->codec_id;
|
vtctx->codec_id = avctx->codec_id;
|
||||||
avctx->max_b_frames = 16;
|
|
||||||
|
|
||||||
if (vtctx->codec_id == AV_CODEC_ID_H264) {
|
if (vtctx->codec_id == AV_CODEC_ID_H264) {
|
||||||
vtctx->get_param_set_func = CMVideoFormatDescriptionGetH264ParameterSetAtIndex;
|
vtctx->get_param_set_func = CMVideoFormatDescriptionGetH264ParameterSetAtIndex;
|
||||||
|
Reference in New Issue
Block a user