Commit e627b240 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: check extra before read

parent 7e510968
...@@ -1309,7 +1309,7 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample ) ...@@ -1309,7 +1309,7 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
else else
p_track->fmt.i_codec = VLC_CODEC_TX3G; p_track->fmt.i_codec = VLC_CODEC_TX3G;
if( GetDWBE(p_text->p_data) & 0xC0000000 ) if( p_text->i_data > 4 && GetDWBE(p_text->p_data) & 0xC0000000 )
{ {
p_track->fmt.i_priority = ES_PRIORITY_SELECTABLE_MIN + 1; p_track->fmt.i_priority = ES_PRIORITY_SELECTABLE_MIN + 1;
p_track->b_forced_spu = true; p_track->b_forced_spu = true;
......
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