[vlc-commits] demux: mp4: fix heap buffer ofw with zero chunk (fix #12356)
Francois Cartegnie
git at videolan.org
Thu Oct 9 00:08:09 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 8 17:06:28 2014 +0200| [929970aecfc91725ba243953ccb5197fa797c0a8] | committer: Francois Cartegnie
demux: mp4: fix heap buffer ofw with zero chunk (fix #12356)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=929970aecfc91725ba243953ccb5197fa797c0a8
---
modules/demux/mp4/mp4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/mp4/mp4.c b/modules/demux/mp4/mp4.c
index eff7bf8..f40cf2a 100644
--- a/modules/demux/mp4/mp4.c
+++ b/modules/demux/mp4/mp4.c
@@ -2255,7 +2255,7 @@ static void TrackGetESSampleRate( demux_t *p_demux,
return;
}
- if( p_track->i_chunk_count <= 0 )
+ if( p_track->i_chunk_count == 0 )
return;
/* */
@@ -2295,7 +2295,7 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
demux_sys_t *p_sys = p_demux->p_sys;
unsigned int i_sample_description_index;
- if( p_sys->b_fragmented )
+ if( p_sys->b_fragmented || p_track->i_chunk_count == 0 )
i_sample_description_index = 1; /* XXX */
else
i_sample_description_index =
More information about the vlc-commits
mailing list