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
90f7c0b0
Commit
90f7c0b0
authored
May 24, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: fix reading tfra
parent
21c8fcc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+13
-1
No files found.
modules/demux/mp4/libmp4.c
View file @
90f7c0b0
...
...
@@ -3064,15 +3064,25 @@ static int MP4_ReadBox_tfra( stream_t *p_stream, MP4_Box_t *p_box )
||
!
p_tfra
->
p_trun_number
||
!
p_tfra
->
p_sample_number
)
goto
error
;
for
(
uint32_t
i
=
0
;
i
<
i_number_of_entries
;
i
++
)
int
i_fields_length
=
3
+
p_tfra
->
i_length_size_of_traf_num
+
p_tfra
->
i_length_size_of_trun_num
+
p_tfra
->
i_length_size_of_sample_num
;
uint32_t
i
;
for
(
i
=
0
;
i
<
i_number_of_entries
;
i
++
)
{
if
(
p_tfra
->
i_version
==
1
)
{
if
(
i_read
<
i_fields_length
+
16
)
break
;
MP4_GET8BYTES
(
p_tfra
->
p_time
[
i
*
2
]
);
MP4_GET8BYTES
(
p_tfra
->
p_moof_offset
[
i
*
2
]
);
}
else
{
if
(
i_read
<
i_fields_length
+
8
)
break
;
MP4_GET4BYTES
(
p_tfra
->
p_time
[
i
]
);
MP4_GET4BYTES
(
p_tfra
->
p_moof_offset
[
i
]
);
}
...
...
@@ -3130,6 +3140,8 @@ static int MP4_ReadBox_tfra( stream_t *p_stream, MP4_Box_t *p_box )
goto
error
;
}
}
if
(
i
<
i_number_of_entries
)
i_number_of_entries
=
i
;
#ifdef MP4_VERBOSE
if
(
p_tfra
->
i_version
==
0
)
...
...
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