1
0
Fork 0
forked from len0rd/rockbox

Codecs: mp4: Fix seek to end of track

Fix possible crash due to out of bound access.

Fixes FS#13371

Change-Id: I90d28fa89ceb22e6561d33abc5f2b4c7f32d323c
This commit is contained in:
roman.artiukhin 2023-10-03 18:36:09 +03:00
parent b64d46d9d4
commit 69f62b7891
2 changed files with 4 additions and 0 deletions

View file

@ -185,6 +185,8 @@ enum codec_status codec_run(void)
}
NeAACDecPostSeekReset(decoder, i);
ci->seek_complete();
if (i >= demux_res.num_sample_byte_sizes)
break;
}
action = CODEC_ACTION_NULL;