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
This commit is contained in:
Michael Giacomelli 2010-12-11 00:59:57 +00:00
parent 02d45a1318
commit b3f38bcf63

View file

@ -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;