diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2023-09-12 13:16:51 +0300 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-09-18 11:29:21 -0400 |
commit | 9242e4cadbbcc6a5101030ef4fd978b277427ab8 (patch) | |
tree | 7a5a6517ea52d0a3b93d5147b3950a978184ebb0 | |
parent | 6acb6446e6e4e31e3df983dd566739e691a9e521 (diff) | |
download | rockbox-9242e4cadb.tar.gz rockbox-9242e4cadb.zip |
Codecs: mp4: Small cleanup
Remove unnecessary frame modification
Change-Id: I884152a66477efea7cfcadc638f55352ad75fc41
-rw-r--r-- | lib/rbcodec/codecs/libm4a/demux.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/rbcodec/codecs/libm4a/demux.c b/lib/rbcodec/codecs/libm4a/demux.c index 27ecc162c6..25462db030 100644 --- a/lib/rbcodec/codecs/libm4a/demux.c +++ b/lib/rbcodec/codecs/libm4a/demux.c @@ -533,14 +533,11 @@ static bool read_chunk_stco(qtmovie_t *qtmovie, size_t chunk_len) frame += (new_first - old_first) * old_frame; } - frame += (k - old_first) * old_frame; if ((k-1) % accuracy_divider == 0) { - qtmovie->res->lookup_table[idx++].sample = frame; + qtmovie->res->lookup_table[idx++].sample = frame + (k - old_first) * old_frame; } - - frame -= (k - old_first) * old_frame; } /* zero-terminate the lookup table */ qtmovie->res->lookup_table[idx].sample = 0; |