hnm4: change width/height to int to fix hypothetical integer overflows
[ffmpeg.git] / 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;