From ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Tue, 1 Feb 2011 19:55:54 +0000 Subject: 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 --- apps/codecs/libm4a/m4a.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3