Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
36bdc4ad
Commit
36bdc4ad
authored
Jun 04, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: do stsd v2 checks
parent
6cbdc497
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+13
-0
No files found.
modules/demux/mp4/libmp4.c
View file @
36bdc4ad
...
...
@@ -1668,6 +1668,19 @@ static int MP4_ReadBox_sample_soun( stream_t *p_stream, MP4_Box_t *p_box )
int64_t
dummy
;
uint32_t
i_channel
;
/* Checks */
if
(
p_box
->
data
.
p_sample_soun
->
i_channelcount
!=
0x3
||
p_box
->
data
.
p_sample_soun
->
i_samplesize
!=
0x0010
||
p_box
->
data
.
p_sample_soun
->
i_predefined
!=
0xFFFE
||
p_box
->
data
.
p_sample_soun
->
i_reserved3
!=
0x0
||
p_box
->
data
.
p_sample_soun
->
i_sampleratehi
!=
0x1
||
//65536
p_box
->
data
.
p_sample_soun
->
i_sampleratelo
!=
0x0
)
//remainder
{
msg_Err
(
p_stream
,
"invalid stsd V2 box"
);
MP4_READBOX_EXIT
(
0
);
}
/* !Checks */
MP4_GET4BYTES
(
p_box
->
data
.
p_sample_soun
->
i_sample_per_packet
);
MP4_GET8BYTES
(
dummy
);
memcpy
(
&
f_sample_rate
,
&
dummy
,
8
);
...
...
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