[FFmpeg-cvslog] lavfi/subtitles: 10l close codec before format.
Clément Bœsch
git at videolan.org
Tue Dec 4 23:56:35 CET 2012
ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Dec 4 23:56:00 2012 +0100| [ab5497df1556a2099038cdf7bde5e40608c6796e] | committer: Clément Bœsch
lavfi/subtitles: 10l close codec before format.
Fix invalid memory accesses.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab5497df1556a2099038cdf7bde5e40608c6796e
---
libavfilter/vf_ass.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_ass.c b/libavfilter/vf_ass.c
index 3f0d3a9..ade1b37 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;
}
More information about the ffmpeg-cvslog
mailing list