Commit 929970ae authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: fix heap buffer ofw with zero chunk (fix #12356)

parent 2caa3ce4
......@@ -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 =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment