]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/nuv.c
avformat: Switch AVChapter.id to 64bits
[ffmpeg] / libavcodec / nuv.c
index 7958000ae878287df876957bc65efeed8f728fcf..3ceaaac4e9dd79ca495c46b4e783ada95a9f4336 100644 (file)
@@ -126,7 +126,7 @@ static int codec_reinit(AVCodecContext *avctx, int width, int height,
         get_quant_quality(c, quality);
     if (width != c->width || height != c->height) {
         // also reserve space for a possible additional header
-        int buf_size = height * width * 3 / 2
+        int64_t buf_size = height * (int64_t)width * 3 / 2
                      + FFMAX(AV_LZO_OUTPUT_PADDING, AV_INPUT_BUFFER_PADDING_SIZE)
                      + RTJPEG_HEADER_SIZE;
         if (buf_size > INT_MAX/8)