1
0
Fork 0
forked from len0rd/rockbox

Codecs: mp4: Improve support for long files. Part 2

Don't store sample_to_chunk table and read data on demand instead (it's required only once for building lookup table). It allows to store 2x bigger lookup table.

Change-Id: Ida79d0c281040300d6561e124fe10ebacb0e4679
This commit is contained in:
roman.artiukhin 2023-08-31 00:45:46 +03:00 committed by Solomon Peachy
parent 3c9be11411
commit 6acb6446e6
2 changed files with 38 additions and 42 deletions

View file

@ -71,7 +71,7 @@ typedef struct
fourcc_t format;
void *buf;
sample_to_chunk_t *sample_to_chunk;
int32_t sample_to_chunk_offset;
uint32_t num_sample_to_chunks;
sample_offset_t *lookup_table;