mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Codecs: mp4: Fix loading tracks with metadata at the end of file
Fixes FS#13402 Change-Id: Iafb21787e8f042e913c86b249bb2552cfdf4f4a8
This commit is contained in:
parent
5cf8248442
commit
fc65bdab4e
1 changed files with 1 additions and 2 deletions
|
@ -92,8 +92,6 @@ enum codec_status codec_run(void)
|
||||||
|
|
||||||
stream_create(&input_stream,ci);
|
stream_create(&input_stream,ci);
|
||||||
|
|
||||||
ci->seek_buffer(ci->id3->first_frame_offset);
|
|
||||||
|
|
||||||
/* if qtmovie_read returns successfully, the stream is up to
|
/* if qtmovie_read returns successfully, the stream is up to
|
||||||
* the movie data, which can be used directly by the decoder */
|
* the movie data, which can be used directly by the decoder */
|
||||||
if (!qtmovie_read(&input_stream, &demux_res)) {
|
if (!qtmovie_read(&input_stream, &demux_res)) {
|
||||||
|
@ -148,6 +146,7 @@ enum codec_status codec_run(void)
|
||||||
} else {
|
} else {
|
||||||
elapsed_time = 0;
|
elapsed_time = 0;
|
||||||
sound_samples_done = 0;
|
sound_samples_done = 0;
|
||||||
|
ci->seek_buffer(ci->id3->first_frame_offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
ci->set_elapsed(elapsed_time);
|
ci->set_elapsed(elapsed_time);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue