Commit ba1316be authored by Jean-Baptiste Kempf's avatar 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
parent 6c6beb62
...@@ -1369,6 +1369,12 @@ static int MP4_ReadBox_dvc1( stream_t *p_stream, MP4_Box_t *p_box ) ...@@ -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; p_dvc1 = p_box->data.p_dvc1;
MP4_GET1BYTE( p_dvc1->i_profile_level ); /* profile is on 4bits, level 3bits */ 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 */ p_dvc1->i_vc1 = p_box->i_size - 7; /* Header + profile_level */
......
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