[vlc-commits] demux: asf: fix wrong allocation size

Francois Cartegnie git at videolan.org
Tue Nov 26 15:33:52 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 10:27:50 2013 +0100| [b5bffbb2927bf0aeb3930558dd917c07ce5314da] | committer: Francois Cartegnie

demux: asf: fix wrong allocation size

damn ! cid 1132614/1132615

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

 modules/demux/asf/asf.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 4bd83f0..1ec30c0 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -781,7 +781,7 @@ static void ASF_fillup_es_priorities_ex( demux_sys_t *p_sys, void *p_hdr,
             ASF_FindObject( p_hdr, &asf_object_advanced_mutual_exclusion, 0 );
     if (! p_mutex ) return;
 
-    p_prios->pi_stream_numbers = malloc( p_sys->i_track * sizeof( asf_es_priorities_t ) );
+    p_prios->pi_stream_numbers = malloc( p_sys->i_track * sizeof( int16_t ) );
     if ( !p_prios->pi_stream_numbers ) return;
 
     if ( p_mutex->i_stream_number_count )
@@ -805,7 +805,7 @@ static void ASF_fillup_es_bitrate_priorities_ex( demux_sys_t *p_sys, void *p_hdr
             ASF_FindObject( p_hdr, &asf_object_bitrate_mutual_exclusion_guid, 0 );
     if (! p_bitrate_mutex ) return;
 
-    p_prios->pi_stream_numbers = malloc( p_sys->i_track * sizeof( asf_es_priorities_t ) );
+    p_prios->pi_stream_numbers = malloc( p_sys->i_track * sizeof( int16_t ) );
     if ( !p_prios->pi_stream_numbers ) return;
 
     if ( p_bitrate_mutex->i_stream_number_count )



More information about the vlc-commits mailing list