diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-04-24 18:33:39 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-04-24 18:33:39 +0000 |
commit | 2f04e6cca201191b612841dda0218550279b990c (patch) | |
tree | b23bd5148dab9d8a8d7749fd94e4320e8c703f04 | |
parent | 15e9053afbcb6f4b0b42739197a7eca40007e093 (diff) | |
download | rockbox-2f04e6cca201191b612841dda0218550279b990c.tar.gz rockbox-2f04e6cca201191b612841dda0218550279b990c.zip |
Ensure proper termination of m4a lookup table.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29774 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/codecs/libm4a/demux.c | 3 |
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) | |||
505 | offset = stream_read_uint32(qtmovie->stream); | 505 | offset = stream_read_uint32(qtmovie->stream); |
506 | size_remaining -= 4; | 506 | size_remaining -= 4; |
507 | } | 507 | } |
508 | /* zero-terminate the lookup table */ | ||
509 | qtmovie->res->lookup_table[idx].sample = 0; | ||
510 | qtmovie->res->lookup_table[idx].offset = 0; | ||
508 | 511 | ||
509 | if (size_remaining) | 512 | if (size_remaining) |
510 | { | 513 | { |