diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 2dab7f2a71..d10a2c8b58 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -221,6 +221,10 @@ int ff_decode_bsfs_init(AVCodecContext *avctx) goto fail; } + ret = avcodec_parameters_to_context(avctx, s->bsfs[s->nb_bsfs - 1]->par_out); + if (ret < 0) + return ret; + return 0; fail: ff_decode_bsfs_uninit(avctx);