X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fvf_ass.c;h=ade1b37374c519b98c3ffee0fc1a2f4a5ed76fef;hb=fe508f807abd218b0edd272c49f736149ea21279;hp=3f0d3a994c27348d086a5b1edc2407e982bb0888;hpb=3313e46c4ae29899a76e85c1f59524f64ce43095;p=ffmpeg diff --git a/libavfilter/vf_ass.c b/libavfilter/vf_ass.c index 3f0d3a994c2..ade1b37374c 100644 --- a/libavfilter/vf_ass.c +++ b/libavfilter/vf_ass.c @@ -332,10 +332,10 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args) } end: - if (fmt) - avformat_close_input(&fmt); if (dec_ctx) avcodec_close(dec_ctx); + if (fmt) + avformat_close_input(&fmt); return ret; }