From adeaefc878674b3f79b935cb406d8fea9da9de54 Mon Sep 17 00:00:00 2001 From: Jai Menon Date: Mon, 24 May 2010 21:13:22 +0200 Subject: [PATCH] AVI : Don't free uninitialized ES format descriptor for DV muxed in AVI. Signed-off-by: Jean-Baptiste Kempf --- modules/demux/avi/avi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c index c00a3dbad6..55d794a304 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 ) -- 2.11.4.GIT