summaryrefslogtreecommitdiff
path: root/apps/metadata/mpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/metadata/mpc.c')
-rw-r--r--apps/metadata/mpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/metadata/mpc.c b/apps/metadata/mpc.c
index 0387dc9f77..0b75ed04dd 100644
--- a/apps/metadata/mpc.c
+++ b/apps/metadata/mpc.c
@@ -46,8 +46,7 @@ static int set_replaygain_sv7(struct mp3entry* id3,
46 /* We use a peak value of 0 to indicate a given gain type isn't used. */ 46 /* We use a peak value of 0 to indicate a given gain type isn't used. */
47 if (peak != 0) { 47 if (peak != 0) {
48 /* Save the ReplayGain data to id3-structure for further processing. */ 48 /* Save the ReplayGain data to id3-structure for further processing. */
49 used += parse_replaygain_int(album, gain * 512 / 100, peak << 9, 49 parse_replaygain_int(album, gain * 512 / 100, peak << 9, id3);
50 id3, id3->toc + used, sizeof(id3->toc) - used);
51 } 50 }
52 51
53 return used; 52 return used;
@@ -73,8 +72,7 @@ static int set_replaygain_sv8(struct mp3entry* id3,
73 /* We use a peak value of 0 to indicate a given gain type isn't used. */ 72 /* We use a peak value of 0 to indicate a given gain type isn't used. */
74 if (peak != 0) { 73 if (peak != 0) {
75 /* Save the ReplayGain data to id3-structure for further processing. */ 74 /* Save the ReplayGain data to id3-structure for further processing. */
76 used += parse_replaygain_int(album, gain * 512 / 100, peak, 75 parse_replaygain_int(album, gain * 512 / 100, peak, id3);
77 id3, id3->toc + used, sizeof(id3->toc) - used);
78 } 76 }
79 77
80 return used; 78 return used;