[vlc-commits] demux: avi: fix overflow in scale

Francois Cartegnie git at videolan.org
Tue Feb 7 17:58:03 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb  7 17:34:31 2017 +0100| [9ab564c02078c0518b15978d37285c16e909b498] | committer: Francois Cartegnie

demux: avi: fix overflow in scale

refs #17989

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ab564c02078c0518b15978d37285c16e909b498
---

 modules/demux/avi/avi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 9642abc..64f0fa7 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -150,7 +150,7 @@ typedef struct
     vlc_fourcc_t    i_codec;
 
     unsigned int    i_rate;
-    int             i_scale;
+    unsigned int    i_scale;
     unsigned int    i_samplesize;
 
     unsigned int    i_width_bytes;



More information about the vlc-commits mailing list