diff options
| author | Dave Chapman <dave@dchapman.com> | 2007-07-03 14:22:56 +0000 |
|---|---|---|
| committer | Dave Chapman <dave@dchapman.com> | 2007-07-03 14:22:56 +0000 |
| commit | 14193471dbf380e17c23edc420dad83951fe4064 (patch) | |
| tree | bd01bd62568e49633d2ae9d8d15847678836fbd9 | |
| parent | 48304ce6d97e285049991f37c96da1e69c686caa (diff) | |
| download | rockbox-14193471dbf380e17c23edc420dad83951fe4064.zip rockbox-14193471dbf380e17c23edc420dad83951fe4064.tar.gz rockbox-14193471dbf380e17c23edc420dad83951fe4064.tar.bz2 rockbox-14193471dbf380e17c23edc420dad83951fe4064.tar.xz | |
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
| -rw-r--r-- | apps/metadata/asf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/metadata/asf.c b/apps/metadata/asf.c index 7bcfea2..cae33ab 100644 --- a/apps/metadata/asf.c +++ b/apps/metadata/asf.c @@ -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)) { |