1
0
Fork 0
forked from len0rd/rockbox

Check for errors from decode_packet in wmapro.c

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27461 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Mohamed Tarek 2010-07-17 09:55:38 +00:00
parent 56161967c6
commit f98e80367d

View file

@ -132,6 +132,10 @@ next_track:
{
outlen = BUFSIZE; /* decode_packet needs to know the size of the output buffer */
res = decode_packet(&wfx, decoded, &outlen, data, size);
if(res < 0) {
LOGF("(WMA PRO) Error: decode_packet returned %d", res);
goto done;
}
data += res;
size -= res;
if(outlen) {