diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-01 19:55:54 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-02-01 19:55:54 +0000 |
commit | ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed (patch) | |
tree | 9803a22cb541ccf98d6d5701d84649e6665ee095 /apps/codecs | |
parent | 4888d41b099f8038862fa34d2bdcdef2c4117866 (diff) |
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
Diffstat (limited to 'apps/codecs')
-rw-r--r-- | apps/codecs/libm4a/m4a.c | 3 |
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]; |