dshow: avoid integer overflow when using curbufsize
authorrogerdpack <rogerpack2005@gmail.com>
Sun, 19 Aug 2012 12:52:03 +0000 (06:52 -0600)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 20 Aug 2012 18:56:45 +0000 (20:56 +0200)
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavdevice/dshow.c

index ac207b8..0d1987b 100644 (file)
@@ -46,7 +46,7 @@ struct dshow_ctx {
     HANDLE event;
     AVPacketList *pktl;
 
-    unsigned int curbufsize;
+    int64_t curbufsize;
     unsigned int video_frame_num;
 
     IMediaControl *control;