diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2023-12-21 21:05:27 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2023-12-23 14:35:56 -0500 |
commit | fc65bdab4e9d62fb5edf74284944a204aefd5160 (patch) | |
tree | 61ebfaeda95290bdfd0c75f1194da0cdc7c83da8 /lib | |
parent | 5cf8248442b7e1fe5ed184c8fb92c1c25456d34b (diff) | |
download | rockbox-fc65bdab4e9d62fb5edf74284944a204aefd5160.tar.gz rockbox-fc65bdab4e9d62fb5edf74284944a204aefd5160.zip |
Codecs: mp4: Fix loading tracks with metadata at the end of file
Fixes FS#13402
Change-Id: Iafb21787e8f042e913c86b249bb2552cfdf4f4a8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbcodec/codecs/aac.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rbcodec/codecs/aac.c b/lib/rbcodec/codecs/aac.c index 8353f0b1bf..7cd6b07775 100644 --- a/lib/rbcodec/codecs/aac.c +++ b/lib/rbcodec/codecs/aac.c | |||
@@ -92,8 +92,6 @@ enum codec_status codec_run(void) | |||
92 | 92 | ||
93 | stream_create(&input_stream,ci); | 93 | stream_create(&input_stream,ci); |
94 | 94 | ||
95 | ci->seek_buffer(ci->id3->first_frame_offset); | ||
96 | |||
97 | /* if qtmovie_read returns successfully, the stream is up to | 95 | /* if qtmovie_read returns successfully, the stream is up to |
98 | * the movie data, which can be used directly by the decoder */ | 96 | * the movie data, which can be used directly by the decoder */ |
99 | if (!qtmovie_read(&input_stream, &demux_res)) { | 97 | if (!qtmovie_read(&input_stream, &demux_res)) { |
@@ -148,6 +146,7 @@ enum codec_status codec_run(void) | |||
148 | } else { | 146 | } else { |
149 | elapsed_time = 0; | 147 | elapsed_time = 0; |
150 | sound_samples_done = 0; | 148 | sound_samples_done = 0; |
149 | ci->seek_buffer(ci->id3->first_frame_offset); | ||
151 | } | 150 | } |
152 | 151 | ||
153 | ci->set_elapsed(elapsed_time); | 152 | ci->set_elapsed(elapsed_time); |