summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2010-12-11 00:59:57 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2010-12-11 00:59:57 +0000
commitb3f38bcf6324f5a3545c7aff6689164318cd8a20 (patch)
treee549121a7c7e37f3848c6db8c78285bf578ded4c /apps
parent02d45a1318fbebd1426e00203d3301b13f9e1be7 (diff)
downloadrockbox-b3f38bcf6324f5a3545c7aff6689164318cd8a20.tar.gz
rockbox-b3f38bcf6324f5a3545c7aff6689164318cd8a20.tar.bz2
rockbox-b3f38bcf6324f5a3545c7aff6689164318cd8a20.zip
Correct mistake in the RealMedia parser that prevented rejecting files with unsupported codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata/rm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/metadata/rm.c b/apps/metadata/rm.c
index 63328a3ab1..e3f0d3694e 100644
--- a/apps/metadata/rm.c
+++ b/apps/metadata/rm.c
@@ -368,9 +368,12 @@ static int rm_parse_header(int fd, RMContext *rmctx, struct mp3entry *id3)
if (v == FOURCC('.','r','a',0xfd))
{
- skipped += real_read_audio_stream_info(fd, rmctx);
- if(skipped < 0)
+ int temp;
+ temp= real_read_audio_stream_info(fd, rmctx);
+ if(temp < 0)
return -1;
+ else
+ skipped += temp;
}
break;