You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-14 22:15:12 +02:00
avcodec/mediacodecenc: add max-bframes support
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
@ -275,6 +275,8 @@ static av_cold int mediacodec_init(AVCodecContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_DEBUG, "set level to 0x%x\n", s->level);
|
av_log(avctx, AV_LOG_DEBUG, "set level to 0x%x\n", s->level);
|
||||||
ff_AMediaFormat_setInt32(format, "level", s->level);
|
ff_AMediaFormat_setInt32(format, "level", s->level);
|
||||||
}
|
}
|
||||||
|
if (avctx->max_b_frames > 0)
|
||||||
|
ff_AMediaFormat_setInt32(format, "max-bframes", avctx->max_b_frames);
|
||||||
|
|
||||||
ret = ff_AMediaCodec_getConfigureFlagEncode(s->codec);
|
ret = ff_AMediaCodec_getConfigureFlagEncode(s->codec);
|
||||||
ret = ff_AMediaCodec_configure(s->codec, format, s->window, NULL, ret);
|
ret = ff_AMediaCodec_configure(s->codec, format, s->window, NULL, ret);
|
||||||
|
Reference in New Issue
Block a user