[vlc-commits] demux: libmp4: add tfra version guard
Francois Cartegnie
git at videolan.org
Tue Oct 21 19:07:14 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Oct 21 17:50:35 2014 +0200| [c60a55a61d6ae0c800f5f21cbb94982c635fb369] | committer: Francois Cartegnie
demux: libmp4: add tfra version guard
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c60a55a61d6ae0c800f5f21cbb94982c635fb369
---
modules/demux/mp4/libmp4.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index f81b966..73ec73e 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -3298,7 +3298,8 @@ static int MP4_ReadBox_tfra( stream_t *p_stream, MP4_Box_t *p_box )
MP4_READBOX_ENTER( MP4_Box_data_tfra_t );
MP4_Box_data_tfra_t *p_tfra = p_box->data.p_tfra;
MP4_GETVERSIONFLAGS( p_box->data.p_tfra );
-
+ if ( p_tfra->i_version > 1 )
+ MP4_READBOX_EXIT( 0 );
MP4_GET4BYTES( p_tfra->i_track_ID );
uint32_t i_lengths = 0;
MP4_GET4BYTES( i_lengths );
More information about the vlc-commits
mailing list