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
8f288cf1
Commit
8f288cf1
authored
May 29, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: set replay gain
parent
c246502d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+18
-0
No files found.
modules/demux/mp4/mp4.c
View file @
8f288cf1
...
...
@@ -2837,6 +2837,24 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
case
AUDIO_ES
:
if
(
!
SetupAudioES
(
p_demux
,
p_track
,
p_sample
)
)
return
VLC_EGENERIC
;
if
(
p_sys
->
p_meta
)
{
audio_replay_gain_t
*
p_arg
=
&
p_track
->
fmt
.
audio_replay_gain
;
const
char
*
psz_meta
=
vlc_meta_GetExtra
(
p_sys
->
p_meta
,
"replaygain_track_gain"
);
if
(
psz_meta
)
{
double
f_gain
=
us_atof
(
psz_meta
);
p_arg
->
pf_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
f_gain
;
p_arg
->
pb_gain
[
AUDIO_REPLAY_GAIN_TRACK
]
=
f_gain
!=
0
;
}
psz_meta
=
vlc_meta_GetExtra
(
p_sys
->
p_meta
,
"replaygain_track_peak"
);
if
(
psz_meta
)
{
double
f_gain
=
us_atof
(
psz_meta
);
p_arg
->
pf_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
f_gain
;
p_arg
->
pb_peak
[
AUDIO_REPLAY_GAIN_TRACK
]
=
f_gain
>
0
;
}
}
break
;
case
SPU_ES
:
...
...
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