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:
parent
15e9053afb
commit
2f04e6cca2
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue