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:
parent
02d45a1318
commit
b3f38bcf63
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue