diff options
| author | Mohamed Tarek <mt@rockbox.org> | 2010-07-17 09:55:38 +0000 |
|---|---|---|
| committer | Mohamed Tarek <mt@rockbox.org> | 2010-07-17 09:55:38 +0000 |
| commit | f98e80367dd743cea937ca1798ed8f2af26848e4 (patch) | |
| tree | 50f237bf6c8bca13bdc48ffba3ca477f005a0b9f | |
| parent | 56161967c64656574f601721c1f91eaec11dd7fe (diff) | |
| download | rockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.zip rockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.tar.gz rockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.tar.bz2 rockbox-f98e80367dd743cea937ca1798ed8f2af26848e4.tar.xz | |
Check for errors from decode_packet in wmapro.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27461 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/codecs/wmapro.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/wmapro.c b/apps/codecs/wmapro.c index 33032f3..e929c1f 100644 --- a/apps/codecs/wmapro.c +++ b/apps/codecs/wmapro.c @@ -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) { |