[vlc-commits] demux: mp4: check extra before read
Francois Cartegnie
git at videolan.org
Wed May 22 20:21:29 CEST 2019
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed May 22 19:10:07 2019 +0200| [e627b240e190f6692a08002865ac4b662fdcc7be] | committer: Francois Cartegnie
demux: mp4: check extra before read
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e627b240e190f6692a08002865ac4b662fdcc7be
---
modules/demux/mp4/essetup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 44ea84eb14..a7139667b0 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -1309,7 +1309,7 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
else
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->b_forced_spu = true;
More information about the vlc-commits
mailing list