[FFmpeg-devel] [PATCH 2/5] ffplay: add missing filt_in assignment after video filter reconfigure

Marton Balint cus at passwd.hu
Thu Jun 7 00:02:32 CEST 2012


Fixes segfaults on changing resolution.

Signed-off-by: Marton Balint <cus at passwd.hu>
---
 ffplay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/ffplay.c b/ffplay.c
index b5270e0..e7ee4b1 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -1690,6 +1690,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;
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list