git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hnm4: change width/height to int to fix hypothetical integer overflows
[ffmpeg.git]
/
libavcodec
/
hnm4video.c
diff --git
a/libavcodec/hnm4video.c
b/libavcodec/hnm4video.c
index
4220202
..
700504d
100644
(file)
--- a/
libavcodec/hnm4video.c
+++ b/
libavcodec/hnm4video.c
@@
-37,8
+37,8
@@
typedef struct Hnm4VideoContext {
uint8_t version;
typedef struct Hnm4VideoContext {
uint8_t version;
-
uint16_
t width;
-
uint16_
t height;
+
in
t width;
+
in
t height;
uint8_t *current;
uint8_t *previous;
uint8_t *buffer1;
uint8_t *current;
uint8_t *previous;
uint8_t *buffer1;