diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-04 23:56:00 +0100 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-04 23:56:02 +0100 |
commit | ab5497df1556a2099038cdf7bde5e40608c6796e (patch) | |
tree | 2ae43d124fa5ad679ffc52e21a59b1e8da1952e4 /libavfilter | |
parent | 03847eb8259291b4ff1bd840bd779d0699d71f96 (diff) |
lavfi/subtitles: 10l close codec before format.
Fix invalid memory accesses.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_ass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_ass.c b/libavfilter/vf_ass.c index 3f0d3a994c..ade1b37374 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; } |