mirror of https://git.ffmpeg.org/ffmpeg.git
filmstripdec: avoid integer overflow
CC: libav-stable@libav.org Bug-Id: CID 732246
This commit is contained in:
parent
090c67d586
commit
b46b233baf
|
@ -84,7 +84,7 @@ static int read_packet(AVFormatContext *s,
|
||||||
return AVERROR(EIO);
|
return AVERROR(EIO);
|
||||||
pkt->dts = avio_tell(s->pb) / (st->codec->width * (st->codec->height + film->leading) * 4);
|
pkt->dts = avio_tell(s->pb) / (st->codec->width * (st->codec->height + film->leading) * 4);
|
||||||
pkt->size = av_get_packet(s->pb, pkt, st->codec->width * st->codec->height * 4);
|
pkt->size = av_get_packet(s->pb, pkt, st->codec->width * st->codec->height * 4);
|
||||||
avio_skip(s->pb, st->codec->width * film->leading * 4);
|
avio_skip(s->pb, st->codec->width * (int64_t) film->leading * 4);
|
||||||
if (pkt->size < 0)
|
if (pkt->size < 0)
|
||||||
return pkt->size;
|
return pkt->size;
|
||||||
pkt->flags |= AV_PKT_FLAG_KEY;
|
pkt->flags |= AV_PKT_FLAG_KEY;
|
||||||
|
|
Loading…
Reference in New Issue