summaryrefslogtreecommitdiff
path: root/libavcodec/hnm4video.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-10 22:48:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-12-10 23:50:08 +0100
commite23b18321fb5cffb6e05d0b0ef00de9733f560da (patch)
tree0c0604cf8141ae1b2fa8349fb218aa91ca244f61 /libavcodec/hnm4video.c
parent3af9d8269ea2878fb7960ab5ed52f4a75c73e6ec (diff)
avcodec/hnm4video: change width/height to int
Fixes hypothetical integer overflows Related to CID1135770 & CID1135771 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hnm4video.c')
-rw-r--r--libavcodec/hnm4video.c4
1 files 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;