From e23b18321fb5cffb6e05d0b0ef00de9733f560da Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 10 Dec 2013 22:48:41 +0100 Subject: [PATCH] avcodec/hnm4video: change width/height to int Fixes hypothetical integer overflows Related to CID1135770 & CID1135771 Signed-off-by: Michael Niedermayer --- libavcodec/hnm4video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/hnm4video.c b/libavcodec/hnm4video.c index 177972ba64..bb827dfac3 100644 --- a/libavcodec/hnm4video.c +++ b/libavcodec/hnm4video.c @@ -36,8 +36,8 @@ typedef struct Hnm4VideoContext { uint8_t version; - uint16_t width; - uint16_t height; + int width; + int height; uint8_t *current; uint8_t *previous; uint8_t *buffer1;