summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {