[FFmpeg-cvslog] dshow: avoid integer overflow when using curbufsize

rogerdpack git at videolan.org
Mon Aug 20 21:02:17 CEST 2012


ffmpeg | branch: master | rogerdpack <rogerpack2005 at gmail.com> | Sun Aug 19 06:52:03 2012 -0600| [a966d94891cea4b571bd2cac0e94b13ec93d997a] | committer: Michael Niedermayer

dshow: avoid integer overflow when using curbufsize

Signed-off-by: rogerdpack <rogerpack2005 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavdevice/dshow.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index ac207b8..0d1987b 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -46,7 +46,7 @@ struct dshow_ctx {
     HANDLE event;
     AVPacketList *pktl;
 
-    unsigned int curbufsize;
+    int64_t curbufsize;
     unsigned int video_frame_num;
 
     IMediaControl *control;



More information about the ffmpeg-cvslog mailing list