hnm4: change width/height to int to fix hypothetical integer overflows
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Nov 2014 10:13:08 +0000 (11:13 +0100)
committerVittorio Giovara <vittorio.giovara@gmail.com>
Tue, 25 Nov 2014 02:00:06 +0000 (02:00 +0000)
CC: libav-stable@libav.org
Bug-Id: CID 1135770 / CID 1135771

libavcodec/hnm4video.c

index 4220202..700504d 100644 (file)
@@ -37,8 +37,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;