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 /lib/rbcodec/codecs | |
parent | 6acb6446e6e4e31e3df983dd566739e691a9e521 (diff) | |
download | rockbox-9242e4cadbbcc6a5101030ef4fd978b277427ab8.tar.gz rockbox-9242e4cadbbcc6a5101030ef4fd978b277427ab8.zip |
Codecs: mp4: Small cleanup
Remove unnecessary frame modification
Change-Id: I884152a66477efea7cfcadc638f55352ad75fc41
Diffstat (limited to 'lib/rbcodec/codecs')
-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) | |||
533 | 533 | ||
534 | frame += (new_first - old_first) * old_frame; | 534 | frame += (new_first - old_first) * old_frame; |
535 | } | 535 | } |
536 | frame += (k - old_first) * old_frame; | ||
537 | 536 | ||
538 | if ((k-1) % accuracy_divider == 0) | 537 | if ((k-1) % accuracy_divider == 0) |
539 | { | 538 | { |
540 | qtmovie->res->lookup_table[idx++].sample = frame; | 539 | qtmovie->res->lookup_table[idx++].sample = frame + (k - old_first) * old_frame; |
541 | } | 540 | } |
542 | |||
543 | frame -= (k - old_first) * old_frame; | ||
544 | } | 541 | } |
545 | /* zero-terminate the lookup table */ | 542 | /* zero-terminate the lookup table */ |
546 | qtmovie->res->lookup_table[idx].sample = 0; | 543 | qtmovie->res->lookup_table[idx].sample = 0; |