summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroman.artiukhin <bahusdrive@gmail.com>2023-09-12 13:16:51 +0300
committerSolomon Peachy <pizza@shaftnet.org>2023-09-18 11:29:21 -0400
commit9242e4cadbbcc6a5101030ef4fd978b277427ab8 (patch)
tree7a5a6517ea52d0a3b93d5147b3950a978184ebb0 /lib
parent6acb6446e6e4e31e3df983dd566739e691a9e521 (diff)
downloadrockbox-9242e4cadbbcc6a5101030ef4fd978b277427ab8.tar.gz
rockbox-9242e4cadbbcc6a5101030ef4fd978b277427ab8.zip
Codecs: mp4: Small cleanup
Remove unnecessary frame modification Change-Id: I884152a66477efea7cfcadc638f55352ad75fc41
Diffstat (limited to 'lib')
-rw-r--r--lib/rbcodec/codecs/libm4a/demux.c5
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;