1
0
Fork 0
forked from len0rd/rockbox

mpa: remove bad enum comparison spotted by gcc 4.5.1

MAD_FLAG_INCOMPLETE only applies to frame header and isn't an error

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27655 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-08-01 16:08:25 +00:00
parent 3bc8fd0824
commit 2e7d92fef7

View file

@ -418,8 +418,7 @@ next_track:
}
if (mad_frame_decode(&frame, &stream)) {
if (stream.error == MAD_FLAG_INCOMPLETE
|| stream.error == MAD_ERROR_BUFLEN) {
if (stream.error == MAD_ERROR_BUFLEN) {
/* This makes the codec support partially corrupted files */
if (file_end == 30)
break;