[FFmpeg-cvslog] avcodec/hnm4video: change width/height to int

Michael Niedermayer git at videolan.org
Tue Dec 10 23:59:35 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 10 22:48:41 2013 +0100| [e23b18321fb5cffb6e05d0b0ef00de9733f560da] | committer: Michael Niedermayer

avcodec/hnm4video: change width/height to int

Fixes hypothetical integer overflows
Related to CID1135770 & CID1135771

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e23b18321fb5cffb6e05d0b0ef00de9733f560da
---

 libavcodec/hnm4video.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/hnm4video.c b/libavcodec/hnm4video.c
index 177972b..bb827df 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;



More information about the ffmpeg-cvslog mailing list