summaryrefslogtreecommitdiff
path: root/libavcodec/hnm4video.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-12 11:13:08 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-11-25 02:00:06 +0000
commit57ed5a64feec4af1f16f9a74c63cfa9aa8147242 (patch)
tree0c2775126d7edeafe757a1d2f76f3c6596b3faba /libavcodec/hnm4video.c
parent16158da9607f2f84232d3dd381406b2f2449ec74 (diff)
hnm4: change width/height to int to fix hypothetical integer overflows
CC: libav-stable@libav.org Bug-Id: CID 1135770 / CID 1135771
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 4220202e15..700504d87c 100644
--- a/libavcodec/hnm4video.c
+++ b/libavcodec/hnm4video.c
@@ -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;