You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02: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