Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d83eeb5e
Commit
d83eeb5e
authored
Oct 19, 2012
by
Frédéric Yhuel
Committed by
Jean-Baptiste Kempf
Oct 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+5
-4
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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