mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-20 21:00:41 +08:00
avcodec/decode: Fix avcodec parameters when bsfs are enable by decoder
BSF can update extradata, e.g., vvc_mp4toannexb. If we don't copy bsf->par_out back to avcodec context, decoder can get extradata in mp4 format, while packets are in annexb format.
This commit is contained in:
@@ -202,6 +202,9 @@ static int decode_bsfs_init(AVCodecContext *avctx)
|
||||
goto fail;
|
||||
|
||||
ret = av_bsf_init(avci->bsf);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
ret = avcodec_parameters_to_context(avctx, avci->bsf->par_out);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user