1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: apps/codecs/libmusepack/mpc_demux.c
===================================================================
--- apps/codecs/libmusepack/mpc_demux.c  (revision 28436)
+++ apps/codecs/libmusepack/mpc_demux.c  (working copy)
@@ -101,6 +101,9 @@
             memmove(d->buffer + offset, d->bits_reader.buff, unread_bytes);
             d->bits_reader.buff = d->buffer + offset;
             d->bytes_total = unread_bytes + offset;
+            /* reset Coldfire optimized read when rebuffering */
+            d->bits_reader.buffered_addr = 0;
+            d->bits_reader.buffered_code = 0;
         }
         bytes2read = d->r->read(d->r, d->buffer + d->bytes_total, bytes2read);
         if (flags & MPC_BUFFER_SWAP){