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
8b16963e
Commit
8b16963e
authored
May 26, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: add missing sample count
parent
743272ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+5
-0
No files found.
modules/demux/mp4/mp4.c
View file @
8b16963e
...
...
@@ -3190,10 +3190,13 @@ static uint32_t MP4_TrackSampleSize( mp4_track_t *p_track, uint32_t *pi_nb_sampl
if
(
p_track
->
i_sample_size
==
0
)
{
/* most simple case */
*
pi_nb_samples
=
1
;
return
p_track
->
p_sample_size
[
p_track
->
i_sample
];
}
if
(
p_track
->
fmt
.
i_cat
!=
AUDIO_ES
)
{
*
pi_nb_samples
=
1
;
return
p_track
->
i_sample_size
;
}
...
...
@@ -3209,12 +3212,14 @@ static uint32_t MP4_TrackSampleSize( mp4_track_t *p_track, uint32_t *pi_nb_sampl
i_size
*=
p_soun
->
i_bytes_per_frame
;
else
i_size
=
UINT32_MAX
;
*
pi_nb_samples
=
i_samples
;
}
else
if
(
p_track
->
i_sample_size
>
256
)
{
/* We do that so we don't read too much data
* (in this case we are likely dealing with compressed data) */
i_size
=
p_track
->
i_sample_size
;
*
pi_nb_samples
=
1
;
}
else
{
...
...
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