summaryrefslogtreecommitdiff
path: root/apps/codecs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs')
-rw-r--r--apps/codecs/libm4a/demux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/codecs/libm4a/demux.c b/apps/codecs/libm4a/demux.c
index cd53b12fd0..995dd94a07 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)
{