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:
parent
b64d46d9d4
commit
69f62b7891
2 changed files with 4 additions and 0 deletions
|
|
@ -185,6 +185,8 @@ enum codec_status codec_run(void)
|
||||||
}
|
}
|
||||||
NeAACDecPostSeekReset(decoder, i);
|
NeAACDecPostSeekReset(decoder, i);
|
||||||
ci->seek_complete();
|
ci->seek_complete();
|
||||||
|
if (i >= demux_res.num_sample_byte_sizes)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
action = CODEC_ACTION_NULL;
|
action = CODEC_ACTION_NULL;
|
||||||
|
|
|
||||||
|
|
@ -127,6 +127,8 @@ enum codec_status codec_run(void)
|
||||||
set_elapsed_samples(samplesdone);
|
set_elapsed_samples(samplesdone);
|
||||||
|
|
||||||
ci->seek_complete();
|
ci->seek_complete();
|
||||||
|
if (i >= demux_res.num_sample_byte_sizes)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Request the required number of bytes from the input buffer */
|
/* Request the required number of bytes from the input buffer */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue