[FFmpeg-soc] [soc]: r4257 - libavfilter/vsrc_movie.c

vitor subversion at mplayerhq.hu
Fri May 8 11:59:18 CEST 2009


Author: vitor
Date: Fri May  8 11:59:17 2009
New Revision: 4257

Log:
Cleanup properly at uninit().

Patch by Martin Storsjö - $firstname@$firstname.st

Modified:
   libavfilter/vsrc_movie.c

Modified: libavfilter/vsrc_movie.c
==============================================================================
--- libavfilter/vsrc_movie.c	Fri May  8 00:06:32 2009	(r4256)
+++ libavfilter/vsrc_movie.c	Fri May  8 11:59:17 2009	(r4257)
@@ -260,6 +260,11 @@ static av_cold void uninit(AVFilterConte
 {
     MovieContext *mv = ctx->priv;
 
+    if(mv->pCodecCtx)
+        avcodec_close(mv->pCodecCtx);
+    if(mv->pFormatCtx)
+        av_close_input_file(mv->pFormatCtx);
+    av_freep(&mv->pFrame);
     if(mv->pic)
         avfilter_unref_pic(mv->pic);
 }


More information about the FFmpeg-soc mailing list