forked from len0rd/rockbox
We do not support mpc sv4-6 anymore.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17605 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6a74a5dd3b
commit
e1e0bc2675
1 changed files with 1 additions and 18 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue