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, } ++chunk; } - new_pos = demux_res->chunk_offset[chunk-1]; + new_pos = demux_res->chunk_offset[chunk > 0 ? chunk - 1 : 0]; /* Get the first sample of the chunk. */ i = 1; |