openbsd-ports/x11/vlc/patches/patch-modules_demux_avi_avi_c
dcoppa 25d9cd0797 - Fix a potential crash with MMS.
- Don't free uninitialized ES format descriptor for DV muxed in AVI.

From upstream via Brad.
OK sthen@
2011-05-08 16:20:16 +00:00

19 lines
639 B
Plaintext

$OpenBSD: patch-modules_demux_avi_avi_c,v 1.1 2011/05/08 16:20:16 dcoppa Exp $
Don't free uninitialized ES format descriptor for DV muxed in AVI.
--- modules/demux/avi/avi.c.orig Thu May 5 20:34:10 2011
+++ modules/demux/avi/avi.c Thu May 5 20:34:42 2011
@@ -643,7 +643,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 )