Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
d83eeb5e
Commit
d83eeb5e
authored
Oct 19, 2012
by
yhuelf
Committed by
Jean-Baptiste Kempf
Oct 19, 2012
Browse files
demux/mp4: be less picky wrt VC-1 profiles we accept
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
16c650eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mp4/libmp4.c
View file @
d83eeb5e
...
...
@@ -1448,9 +1448,10 @@ 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
)
uint8_t
i_profile
=
(
p_dvc1
->
i_profile_level
&
0xf0
)
>>
4
;
if
(
i_profile
!=
0x06
&&
i_profile
!=
0x0c
)
{
msg_Warn
(
p_stream
,
"unsupported VC-1 profile, please report"
);
msg_Warn
(
p_stream
,
"unsupported VC-1 profile
(%"
PRIu8
")
, please report"
,
i_profile
);
MP4_READBOX_EXIT
(
0
);
}
...
...
@@ -1466,8 +1467,8 @@ static int MP4_ReadBox_dvc1( stream_t *p_stream, MP4_Box_t *p_box )
#ifdef MP4_VERBOSE
msg_Dbg
(
p_stream
,
"read box:
\"
dvc1
\"
profile=%
i
level=%i"
,
p_dvc1
->
i_profile
_level
&
0xf0
>>
4
,
p_dvc1
->
i_profile_level
&
0x0e
>>
1
);
"read box:
\"
dvc1
\"
profile=%
"
PRIu8
"
level=%i"
,
i_profile
,
p_dvc1
->
i_profile_level
&
0x0e
>>
1
);
#endif
MP4_READBOX_EXIT
(
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment