From fc65bdab4e9d62fb5edf74284944a204aefd5160 Mon Sep 17 00:00:00 2001 From: "roman.artiukhin" Date: Thu, 21 Dec 2023 21:05:27 +0200 Subject: Codecs: mp4: Fix loading tracks with metadata at the end of file Fixes FS#13402 Change-Id: Iafb21787e8f042e913c86b249bb2552cfdf4f4a8 --- lib/rbcodec/codecs/aac.c | 3 +-- 1 file changed, 1 insertion(+), 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) stream_create(&input_stream,ci); - ci->seek_buffer(ci->id3->first_frame_offset); - /* if qtmovie_read returns successfully, the stream is up to * the movie data, which can be used directly by the decoder */ if (!qtmovie_read(&input_stream, &demux_res)) { @@ -148,6 +146,7 @@ enum codec_status codec_run(void) } else { elapsed_time = 0; sound_samples_done = 0; + ci->seek_buffer(ci->id3->first_frame_offset); } ci->set_elapsed(elapsed_time); -- cgit v1.2.3