Commit ab5497df authored by Clément Bœsch's avatar Clément Bœsch

lavfi/subtitles: 10l close codec before format.

Fix invalid memory accesses.
parent 03847eb8
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment