summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-01 19:55:54 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-02-01 19:55:54 +0000
commitee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed (patch)
tree9803a22cb541ccf98d6d5701d84649e6665ee095
parent4888d41b099f8038862fa34d2bdcdef2c4117866 (diff)
downloadrockbox-ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed.tar.gz
rockbox-ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed.tar.bz2
rockbox-ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed.zip
We seeked one chunk too far when resuming m4a files.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29180 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/codecs/libm4a/m4a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/codecs/libm4a/m4a.c b/apps/codecs/libm4a/m4a.c
index 0825132b85..7ff9dd2544 100644
--- a/apps/codecs/libm4a/m4a.c
+++ b/apps/codecs/libm4a/m4a.c
@@ -356,10 +356,11 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream,
chunk = 0;
while (chunk < demux_res->num_chunk_offsets)
{
- if (file_loc < demux_res->chunk_offset[chunk++])
+ if (file_loc < demux_res->chunk_offset[chunk])
{
break;
}
+ ++chunk;
}
new_pos = demux_res->chunk_offset[chunk-1];