[FFmpeg-cvslog] dshow: initialize variable to prevent releasing random data

Ramiro Polla git at videolan.org
Fri Sep 16 11:18:19 CEST 2011


ffmpeg | branch: master | Ramiro Polla <ramiro.polla at gmail.com> | Fri Sep  9 00:10:22 2011 -0300| [d0da310317cae25c0c533f6862fb25dc81ec3d4b] | committer: Stefano Sabatini

dshow: initialize variable to prevent releasing random data

Signed-off-by: Stefano Sabatini <stefasab at gmail.com>

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

 libavdevice/dshow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
index 2ef313f..fe60b9f 100644
--- a/libavdevice/dshow.c
+++ b/libavdevice/dshow.c
@@ -320,7 +320,7 @@ dshow_cycle_pins(AVFormatContext *avctx, enum dshowDeviceType devtype,
 
     while (IEnumPins_Next(pins, 1, &pin, NULL) == S_OK && !device_pin) {
         IKsPropertySet *p = NULL;
-        IEnumMediaTypes *types;
+        IEnumMediaTypes *types = NULL;
         PIN_INFO info = {0};
         AM_MEDIA_TYPE *type;
         GUID category;



More information about the ffmpeg-cvslog mailing list