diff --git a/libavcodec/decode.c b/libavcodec/decode.c index fca0c7ff58..14702fb041 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -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;