You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mov: Do not read past the end of the ctts_data table.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
This commit is contained in:
@@ -2713,7 +2713,7 @@ static int mov_read_packet(AVFormatContext *s, AVPacket *pkt)
|
|||||||
|
|
||||||
pkt->stream_index = sc->ffindex;
|
pkt->stream_index = sc->ffindex;
|
||||||
pkt->dts = sample->timestamp;
|
pkt->dts = sample->timestamp;
|
||||||
if (sc->ctts_data) {
|
if (sc->ctts_data && sc->ctts_index < sc->ctts_count) {
|
||||||
pkt->pts = pkt->dts + sc->dts_shift + sc->ctts_data[sc->ctts_index].duration;
|
pkt->pts = pkt->dts + sc->dts_shift + sc->ctts_data[sc->ctts_index].duration;
|
||||||
/* update ctts context */
|
/* update ctts context */
|
||||||
sc->ctts_sample++;
|
sc->ctts_sample++;
|
||||||
|
Reference in New Issue
Block a user