1
0
Fork 0
forked from len0rd/rockbox

Ensure proper termination of m4a lookup table.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29774 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Andree Buschmann 2011-04-24 18:33:39 +00:00
parent 15e9053afb
commit 2f04e6cca2

View file

@ -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)
{