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 /apps/metadata | |
parent | 48304ce6d97e285049991f37c96da1e69c686caa (diff) | |
download | rockbox-14193471dbf380e17c23edc420dad83951fe4064.tar.gz rockbox-14193471dbf380e17c23edc420dad83951fe4064.zip |
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
Diffstat (limited to 'apps/metadata')
-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 7bcfea22f0..cae33ab375 100644 --- a/apps/metadata/asf.c +++ b/apps/metadata/asf.c | |||
@@ -401,6 +401,11 @@ bool get_asf_metadata(int fd, struct mp3entry* id3) | |||
401 | return false; | 401 | return false; |
402 | } | 402 | } |
403 | 403 | ||
404 | if (wfx.bitrate < 32000) { | ||
405 | DEBUGF("ASF: < 32kbps files not supported\n"); | ||
406 | return false; | ||
407 | } | ||
408 | |||
404 | asf_read_object_header(&obj, fd); | 409 | asf_read_object_header(&obj, fd); |
405 | 410 | ||
406 | if (!asf_guid_match(&obj.guid, &asf_guid_data)) { | 411 | if (!asf_guid_match(&obj.guid, &asf_guid_data)) { |