mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-24 13:42:56 +02:00
avcodec/mediacodecenc: add max-bframes support
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
7da1adfc02
commit
a86bb1d2ce
@ -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);
|
||||
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_configure(s->codec, format, s->window, NULL, ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user