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 | |
parent | 4888d41b099f8038862fa34d2bdcdef2c4117866 (diff) | |
download | rockbox-ee6a74e7e3f0d4173eb4dad63f0f3c891f8732ed.tar.gz 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.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, | |||
356 | chunk = 0; | 356 | chunk = 0; |
357 | while (chunk < demux_res->num_chunk_offsets) | 357 | while (chunk < demux_res->num_chunk_offsets) |
358 | { | 358 | { |
359 | if (file_loc < demux_res->chunk_offset[chunk++]) | 359 | if (file_loc < demux_res->chunk_offset[chunk]) |
360 | { | 360 | { |
361 | break; | 361 | break; |
362 | } | 362 | } |
363 | ++chunk; | ||
363 | } | 364 | } |
364 | new_pos = demux_res->chunk_offset[chunk-1]; | 365 | new_pos = demux_res->chunk_offset[chunk-1]; |
365 | 366 | ||