diff options
author | Mohamed Tarek <mt@rockbox.org> | 2010-08-13 13:06:56 +0000 |
---|---|---|
committer | Mohamed Tarek <mt@rockbox.org> | 2010-08-13 13:06:56 +0000 |
commit | a861b49cce9ff6a1c7531ddc396b6367648ff57e (patch) | |
tree | b8b1cf4562c895602d081796e3aba28a208500cd /apps/codecs | |
parent | 6dd974a7a3e1f42ba66ece2a9bb39560da8f50f5 (diff) |
Fix a bug in the asf parser that led to dropping packets in WMA voice. WMA voice now outputs the correct number of samples/packets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27800 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libasf/asf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libasf/asf.c b/apps/codecs/libasf/asf.c index 1188fb4e08..ce416689da 100644 --- a/apps/codecs/libasf/asf.c +++ b/apps/codecs/libasf/asf.c @@ -191,7 +191,7 @@ int asf_read_packet(uint8_t** audiobuf, int* audiobufsize, int* packetlength, buf = ci->request_buffer(&bufsize, length); datap = buf; - if (bufsize != length) { + if (bufsize > length) { /* This should only happen with packets larger than 32KB (the guard buffer size). All the streams I've seen have relatively small packets less than about 8KB), but I don't |