avcodec/hnm4video: change width/height to int
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 21:48:41 +0000 (22:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 10 Dec 2013 22:50:08 +0000 (23:50 +0100)
Fixes hypothetical integer overflows
Related to CID1135770 & CID1135771

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/hnm4video.c

index 177972ba64d0057242682b8e119c2d009f670504..bb827dfac3114f4f30726c617ab2b0b6a80f4ee9 100644 (file)
@@ -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;