From 14193471dbf380e17c23edc420dad83951fe4064 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 3 Jul 2007 14:22:56 +0000 Subject: 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 --- apps/metadata/asf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/metadata') 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) 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)) { -- cgit v1.2.3