From e14b0fc5fb2239ddc58ec08748b4b26a17092520 Mon Sep 17 00:00:00 2001 From: Buschel Date: Sun, 24 Apr 2011 18:33:39 +0000 Subject: [PATCH] Ensure proper termination of m4a lookup table. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29774 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libm4a/demux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/codecs/libm4a/demux.c b/apps/codecs/libm4a/demux.c index cd53b12fd..995dd94a0 100644 --- a/apps/codecs/libm4a/demux.c +++ b/apps/codecs/libm4a/demux.c @@ -505,6 +505,9 @@ static bool read_chunk_stco(qtmovie_t *qtmovie, size_t chunk_len) offset = stream_read_uint32(qtmovie->stream); size_remaining -= 4; } + /* zero-terminate the lookup table */ + qtmovie->res->lookup_table[idx].sample = 0; + qtmovie->res->lookup_table[idx].offset = 0; if (size_remaining) { -- 2.11.4.GIT