summaryrefslogtreecommitdiff
path: root/apps/codecs/wmapro.c
diff options
context:
space:
mode:
authorMohamed Tarek <mt@rockbox.org>2010-07-17 09:55:38 +0000
committerMohamed Tarek <mt@rockbox.org>2010-07-17 09:55:38 +0000
commitf98e80367dd743cea937ca1798ed8f2af26848e4 (patch)
tree50f237bf6c8bca13bdc48ffba3ca477f005a0b9f /apps/codecs/wmapro.c
parent56161967c64656574f601721c1f91eaec11dd7fe (diff)
downloadrockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.tar.gz
rockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.zip
Check for errors from decode_packet in wmapro.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27461 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/wmapro.c')
-rw-r--r--apps/codecs/wmapro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/wmapro.c b/apps/codecs/wmapro.c
index 33032f3b16..e929c1f428 100644
--- a/apps/codecs/wmapro.c
+++ b/apps/codecs/wmapro.c
@@ -132,6 +132,10 @@ next_track:
132 { 132 {
133 outlen = BUFSIZE; /* decode_packet needs to know the size of the output buffer */ 133 outlen = BUFSIZE; /* decode_packet needs to know the size of the output buffer */
134 res = decode_packet(&wfx, decoded, &outlen, data, size); 134 res = decode_packet(&wfx, decoded, &outlen, data, size);
135 if(res < 0) {
136 LOGF("(WMA PRO) Error: decode_packet returned %d", res);
137 goto done;
138 }
135 data += res; 139 data += res;
136 size -= res; 140 size -= res;
137 if(outlen) { 141 if(outlen) {