[vlc-commits] commit: AVI : Don' t free uninitialized ES format descriptor for DV muxed in AVI. (Jai Menon )

git at videolan.org git at videolan.org
Mon May 24 21:17:46 CEST 2010


vlc/vlc-1.1 | branch: master | Jai Menon <jmenon86 at gmail.com> | Mon May 24 21:13:22 2010 +0200| [ec5bc33a44059336e8101773a7f98f478f4c6bd0] | committer: Jean-Baptiste Kempf 

AVI : Don't free uninitialized ES format descriptor for DV muxed in AVI.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit adeaefc878674b3f79b935cb406d8fea9da9de54)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=ec5bc33a44059336e8101773a7f98f478f4c6bd0
---

 modules/demux/avi/avi.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index c00a3db..55d794a 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -589,7 +589,10 @@ static int Open( vlc_object_t * p_this )
         if( tk->p_out_muxed == NULL )
             tk->p_es = es_out_Add( p_demux->out, &fmt );
         TAB_APPEND( p_sys->i_track, p_sys->track, tk );
-        es_format_Clean( &fmt );
+        if(!p_sys->b_muxed )
+        {
+            es_format_Clean( &fmt );
+        }
     }
 
     if( p_sys->i_track <= 0 )



More information about the vlc-commits mailing list