[FFmpeg-cvslog] filmstripdec: avoid integer overflow
Vittorio Giovara
git at videolan.org
Mon Oct 27 23:04:32 CET 2014
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Oct 24 13:15:39 2014 +0100| [b46b233baffc2076a1a17a264ba9553ae0d4878f] | committer: Vittorio Giovara
filmstripdec: avoid integer overflow
CC: libav-stable at libav.org
Bug-Id: CID 732246
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b46b233baffc2076a1a17a264ba9553ae0d4878f
---
libavformat/filmstripdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/filmstripdec.c b/libavformat/filmstripdec.c
index 3fa6842..e4dee11 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;
More information about the ffmpeg-cvslog
mailing list