You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/decode: copy the output parameters from the last bsf in the chain back to the AVCodecContext
Certain AVCodecParameters, like the contents of the extradata, may be changed by the init() function of any of the bitstream filters in the chain. Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
@@ -281,6 +281,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx)
|
|||||||
bsfs_str++;
|
bsfs_str++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ret = avcodec_parameters_to_context(avctx, s->bsfs[s->nb_bsfs - 1]->par_out);
|
||||||
|
if (ret < 0)
|
||||||
|
return ret;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
fail:
|
fail:
|
||||||
ff_decode_bsfs_uninit(avctx);
|
ff_decode_bsfs_uninit(avctx);
|
||||||
|
Reference in New Issue
Block a user