diff options
Diffstat (limited to 'apps/codecs/libm4a/m4a.c')
-rw-r--r-- | apps/codecs/libm4a/m4a.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/libm4a/m4a.c b/apps/codecs/libm4a/m4a.c index 7ff9dd2544..8c4b172bc2 100644 --- a/apps/codecs/libm4a/m4a.c +++ b/apps/codecs/libm4a/m4a.c | |||
@@ -362,7 +362,7 @@ unsigned int alac_seek_raw(demux_res_t* demux_res, stream_t* stream, | |||
362 | } | 362 | } |
363 | ++chunk; | 363 | ++chunk; |
364 | } | 364 | } |
365 | new_pos = demux_res->chunk_offset[chunk-1]; | 365 | new_pos = demux_res->chunk_offset[chunk > 0 ? chunk - 1 : 0]; |
366 | 366 | ||
367 | /* Get the first sample of the chunk. */ | 367 | /* Get the first sample of the chunk. */ |
368 | i = 1; | 368 | i = 1; |