[vlc-commits] MP4: be more picky wrt VC-1 profiles we accept
Jean-Baptiste Kempf
git at videolan.org
Tue Apr 10 01:50:40 CEST 2012
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Apr 10 01:49:46 2012 +0200| [ba1316be2521e153593ca75e588b78d5077caec3] | committer: Jean-Baptiste Kempf
MP4: be more picky wrt VC-1 profiles we accept
Maybe it could work with VC-1 Main, but no samples so far
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ba1316be2521e153593ca75e588b78d5077caec3
---
modules/demux/mp4/libmp4.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index 6fcf658..f65a5ba 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -1369,6 +1369,12 @@ static int MP4_ReadBox_dvc1( stream_t *p_stream, MP4_Box_t *p_box )
p_dvc1 = p_box->data.p_dvc1;
MP4_GET1BYTE( p_dvc1->i_profile_level ); /* profile is on 4bits, level 3bits */
+ if( p_dvc1->i_profile_level & 0xf0 >> 4 != 0x06 )
+ {
+ msg_Warn( p_stream, "unsupported VC-1 profile, please report" );
+ MP4_READBOX_EXIT( 0 );
+ }
+
p_dvc1->i_vc1 = p_box->i_size - 7; /* Header + profile_level */
More information about the vlc-commits
mailing list