[FFmpeg-cvslog] hnm4: change width/height to int to fix hypothetical integer overflows

Michael Niedermayer git at videolan.org
Tue Nov 25 12:44:28 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 12 11:13:08 2014 +0100| [57ed5a64feec4af1f16f9a74c63cfa9aa8147242] | committer: Vittorio Giovara

hnm4: change width/height to int to fix hypothetical integer overflows

CC: libav-stable at libav.org
Bug-Id: CID 1135770 / CID 1135771

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

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

diff --git a/libavcodec/hnm4video.c b/libavcodec/hnm4video.c
index 4220202..700504d 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;



More information about the ffmpeg-cvslog mailing list