Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
Steve Lhomme
VLC
Commits
5f746e30
Commit
5f746e30
authored
Apr 13, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: fix builtin sample size computing (fix #18224)
parent
b5ed6127
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+3
-2
No files found.
modules/demux/mp4/mp4.c
View file @
5f746e30
...
...
@@ -3379,7 +3379,7 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track,
/* QuickTime "built-in" support case fixups */
if
(
p_track
->
fmt
.
i_cat
==
AUDIO_ES
&&
p_soun
->
i_compressionid
==
0
&&
p_track
->
i_sample_size
==
1
)
p_soun
->
i_compressionid
==
0
&&
p_track
->
i_sample_size
<=
2
)
{
switch
(
p_track
->
fmt
.
i_codec
)
{
...
...
@@ -3398,7 +3398,8 @@ static inline uint32_t MP4_GetFixedSampleSize( const mp4_track_t *p_track,
case
VLC_CODEC_F32B
:
case
VLC_CODEC_F64L
:
case
VLC_CODEC_F64B
:
i_size
=
((
p_soun
->
i_samplesize
+
7
)
/
8
)
*
p_soun
->
i_channelcount
;
if
(
p_track
->
i_sample_size
<
((
p_soun
->
i_samplesize
+
7U
)
/
8U
)
*
p_soun
->
i_channelcount
)
i_size
=
((
p_soun
->
i_samplesize
+
7
)
/
8
)
*
p_soun
->
i_channelcount
;
break
;
case
VLC_CODEC_ALAW
:
case
VLC_FOURCC
(
'u'
,
'l'
,
'a'
,
'w'
):
...
...
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