X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Feamad.c;h=753dee06c33ed16a43f566f78363520674b05e94;hb=01775730fd1e1877c142518f8cce9d23c47060b1;hp=23b1a3c94485fe2ac490453cf4ae8886a5017e52;hpb=3a033bc5cfaeec391a8258005e025ddf3971d8bc;p=ffmpeg diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c index 23b1a3c9448..753dee06c33 100644 --- a/libavcodec/eamad.c +++ b/libavcodec/eamad.c @@ -284,7 +284,7 @@ static int decode_frame(AVCodecContext *avctx, if (avctx->width != width || avctx->height != height) { av_frame_unref(s->last_frame); - if((width * height)/2048*7 > bytestream2_get_bytes_left(&gb)) + if((width * (int64_t)height)/2048*7 > bytestream2_get_bytes_left(&gb)) return AVERROR_INVALIDDATA; if ((ret = ff_set_dimensions(avctx, width, height)) < 0) return ret;