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.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/apps/metadata/mpc.c b/apps/metadata/mpc.c
index 5e14ebbc62..a1d0d81592 100644
--- a/apps/metadata/mpc.c
+++ b/apps/metadata/mpc.c
@@ -82,24 +82,7 @@ bool get_musepack_metadata(int fd, struct mp3entry *id3)
bufused = set_replaygain(id3, true, header[4], bufused);
}
} else {
- header[0] = letoh32(header[0]);
- unsigned int streamversion = (header[0] >> 11) & 0x03FF;
- if (streamversion != 4 && streamversion != 5 && streamversion != 6)
- return false;
- id3->frequency = 44100;
- id3->track_gain = 0;
- id3->track_peak = 0;
- id3->album_gain = 0;
- id3->album_peak = 0;
-
- if (streamversion >= 5)
- samples = (uint64_t)header[1]*1152; // 32 bit
- else
- samples = (uint64_t)(header[1] >> 16)*1152; // 16 bit
-
- samples -= 576;
- if (streamversion < 6)
- samples -= 1152;
+ return false; /* SV4-6 is not supported anymore */
}
id3->vbr = true;