diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-24 13:15:39 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-27 18:21:40 +0000 |
commit | b46b233baffc2076a1a17a264ba9553ae0d4878f (patch) | |
tree | 676dd3c961208dc6b390f70a158eda4d4de19df5 | |
parent | 090c67d586e3916f9acc49e010b6389d07f97153 (diff) | |
download | ffmpeg-b46b233baffc2076a1a17a264ba9553ae0d4878f.tar.gz |
filmstripdec: avoid integer overflow
CC: libav-stable@libav.org
Bug-Id: CID 732246
-rw-r--r-- | libavformat/filmstripdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/filmstripdec.c b/libavformat/filmstripdec.c index 3fa68424b7..e4dee115ce 100644 --- a/libavformat/filmstripdec.c +++ b/libavformat/filmstripdec.c @@ -84,7 +84,7 @@ static int read_packet(AVFormatContext *s, return AVERROR(EIO); 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); - 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) return pkt->size; pkt->flags |= AV_PKT_FLAG_KEY; |