Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
b9553348
Commit
b9553348
authored
6 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/opus: ignore case in replay gain tag names
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/604
parent
90ea3bf9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
NEWS
NEWS
+2
-0
OpusTags.cxx
src/decoder/plugins/OpusTags.cxx
+4
-3
No files found.
NEWS
View file @
b9553348
ver 0.21.12 (not yet released)
ver 0.21.12 (not yet released)
* decoder
- opus: ignore case in replay gain tag names
* Windows
* Windows
- support backslash in relative URIs loaded from playlists
- support backslash in relative URIs loaded from playlists
...
...
This diff is collapsed.
Click to expand it.
src/decoder/plugins/OpusTags.cxx
View file @
b9553348
...
@@ -22,12 +22,12 @@
...
@@ -22,12 +22,12 @@
#include "lib/xiph/XiphTags.hxx"
#include "lib/xiph/XiphTags.hxx"
#include "tag/Handler.hxx"
#include "tag/Handler.hxx"
#include "tag/ParseName.hxx"
#include "tag/ParseName.hxx"
#include "util/ASCII.hxx"
#include "ReplayGainInfo.hxx"
#include "ReplayGainInfo.hxx"
#include <string>
#include <string>
#include <stdint.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <stdlib.h>
gcc_pure
gcc_pure
...
@@ -46,7 +46,7 @@ ScanOneOpusTag(const char *name, const char *value,
...
@@ -46,7 +46,7 @@ ScanOneOpusTag(const char *name, const char *value,
ReplayGainInfo
*
rgi
,
ReplayGainInfo
*
rgi
,
TagHandler
&
handler
)
noexcept
TagHandler
&
handler
)
noexcept
{
{
if
(
rgi
!=
nullptr
&&
strcmp
(
name
,
"R128_TRACK_GAIN"
)
==
0
)
{
if
(
rgi
!=
nullptr
&&
StringEqualsCaseASCII
(
name
,
"R128_TRACK_GAIN"
)
)
{
/* R128_TRACK_GAIN is a Q7.8 fixed point number in
/* R128_TRACK_GAIN is a Q7.8 fixed point number in
dB */
dB */
...
@@ -54,7 +54,8 @@ ScanOneOpusTag(const char *name, const char *value,
...
@@ -54,7 +54,8 @@ ScanOneOpusTag(const char *name, const char *value,
long
l
=
strtol
(
value
,
&
endptr
,
10
);
long
l
=
strtol
(
value
,
&
endptr
,
10
);
if
(
endptr
>
value
&&
*
endptr
==
0
)
if
(
endptr
>
value
&&
*
endptr
==
0
)
rgi
->
track
.
gain
=
double
(
l
)
/
256.
;
rgi
->
track
.
gain
=
double
(
l
)
/
256.
;
}
else
if
(
rgi
!=
nullptr
&&
strcmp
(
name
,
"R128_ALBUM_GAIN"
)
==
0
)
{
}
else
if
(
rgi
!=
nullptr
&&
StringEqualsCaseASCII
(
name
,
"R128_ALBUM_GAIN"
))
{
/* R128_ALBUM_GAIN is a Q7.8 fixed point number in
/* R128_ALBUM_GAIN is a Q7.8 fixed point number in
dB */
dB */
...
...
This diff is collapsed.
Click to expand it.
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