diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-04-18 19:21:25 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-26 07:42:56 +0200 |
commit | 5eb901cfec4a1bca4d961c6eb6889a91a87031ca (patch) | |
tree | 422490a20b88ecdd18cebeee166bb668114b01ac | |
parent | 10d39405fa82473367e1ba1ed3c4ecbeca2a7986 (diff) | |
download | ffmpeg-5eb901cfec4a1bca4d961c6eb6889a91a87031ca.tar.gz |
vsrc_movie: fix leak in request_frame()
Also set movie->picref to NULL, in order to avoid a crash in uninit()
when movie->picref is unreffed again and it was already freed.
Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
-rw-r--r-- | libavfilter/vsrc_movie.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vsrc_movie.c b/libavfilter/vsrc_movie.c index 25bbd4736c..92eb0ecfe0 100644 --- a/libavfilter/vsrc_movie.c +++ b/libavfilter/vsrc_movie.c @@ -290,6 +290,8 @@ static int request_frame(AVFilterLink *outlink) avfilter_start_frame(outlink, outpicref); avfilter_draw_slice(outlink, 0, outlink->h, 1); avfilter_end_frame(outlink); + avfilter_unref_buffer(movie->picref); + movie->picref = NULL; return 0; } |