1
0
Fork 0
forked from len0rd/rockbox

The WMA decoder crashes when attempting to decode files encoded at less than 32kbps, so reject them at the metadata parsing stage. Current SVN ffmpeg can decode these files, so hopefully this can be fixed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13774 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2007-07-03 14:22:56 +00:00
parent 48304ce6d9
commit 14193471db

View file

@ -401,6 +401,11 @@ bool get_asf_metadata(int fd, struct mp3entry* id3)
return false;
}
if (wfx.bitrate < 32000) {
DEBUGF("ASF: < 32kbps files not supported\n");
return false;
}
asf_read_object_header(&obj, fd);
if (!asf_guid_match(&obj.guid, &asf_guid_data)) {