summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
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