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:
parent
56161967c6
commit
f98e80367d
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,10 @@ next_track:
|
||||||
{
|
{
|
||||||
outlen = BUFSIZE; /* decode_packet needs to know the size of the output buffer */
|
outlen = BUFSIZE; /* decode_packet needs to know the size of the output buffer */
|
||||||
res = decode_packet(&wfx, decoded, &outlen, data, size);
|
res = decode_packet(&wfx, decoded, &outlen, data, size);
|
||||||
|
if(res < 0) {
|
||||||
|
LOGF("(WMA PRO) Error: decode_packet returned %d", res);
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
data += res;
|
data += res;
|
||||||
size -= res;
|
size -= res;
|
||||||
if(outlen) {
|
if(outlen) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue