[FFmpeg-cvslog] ffplay: only free vfilters on exit

Marton Balint git at videolan.org
Sat Sep 1 15:04:53 CEST 2012


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Aug 29 23:56:33 2012 +0200| [55594447d635a89d6b0183299f2bf8e27e8a0d42] | committer: Marton Balint

ffplay: only free vfilters on exit

Freeing it in the end of the video thread is not a good idea, because we still
may need the filter names for the next video thread, in order to apply the
filters after chaning the video stream.

Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=55594447d635a89d6b0183299f2bf8e27e8a0d42
---

 ffplay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffplay.c b/ffplay.c
index 861080c..ce19378 100644
--- a/ffplay.c
+++ b/ffplay.c
@@ -938,6 +938,7 @@ static void do_exit(VideoState *is)
     uninit_opts();
 #if CONFIG_AVFILTER
     avfilter_uninit();
+    av_freep(&vfilters);
 #endif
     avformat_network_deinit();
     if (show_status)
@@ -1790,7 +1791,6 @@ static int video_thread(void *arg)
  the_end:
     avcodec_flush_buffers(is->video_st->codec);
 #if CONFIG_AVFILTER
-    av_freep(&vfilters);
     avfilter_graph_free(&graph);
 #endif
     av_free_packet(&pkt);



More information about the ffmpeg-cvslog mailing list