diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-05-22 10:08:24 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2008-05-22 10:08:24 +0000 |
commit | e1e0bc267549e098c5a1ce9383e3390a954a3c5c (patch) | |
tree | 38261635f63ebfe5ba47879aea25444fde587de3 /apps/metadata/mpc.c | |
parent | 6a74a5dd3b625f1143e301b9d6a840e3b4969bd3 (diff) |
We do not support mpc sv4-6 anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17605 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/metadata/mpc.c')
-rw-r--r-- | apps/metadata/mpc.c | 19 |
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; |