[FFmpeg-cvslog] avplay: update input filter pointer when the filtergraph is reset.
Anton Khirnov
git at videolan.org
Thu Jul 5 21:58:38 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 4 11:35:18 2012 +0200| [2696789c52cd4a8a2ff554d2329c60001459c21b] | committer: Anton Khirnov
avplay: update input filter pointer when the filtergraph is reset.
Fixes an invalid read on size change.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2696789c52cd4a8a2ff554d2329c60001459c21b
---
avplay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/avplay.c b/avplay.c
index a5d4e63..1961f5f 100644
--- a/avplay.c
+++ b/avplay.c
@@ -1644,6 +1644,7 @@ static int video_thread(void *arg)
graph = avfilter_graph_alloc();
if ((ret = configure_video_filters(graph, is, vfilters)) < 0)
goto the_end;
+ filt_in = is->in_video_filter;
filt_out = is->out_video_filter;
last_w = is->video_st->codec->width;
last_h = is->video_st->codec->height;
More information about the ffmpeg-cvslog
mailing list