Commit 76b9043e authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'b46b233b'

* commit 'b46b233b':
  filmstripdec: avoid integer overflow
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents f769671f b46b233b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment