diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2011-09-09 07:10:22 +0400 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2011-09-16 13:02:26 +0400 |
commit | d0da310317cae25c0c533f6862fb25dc81ec3d4b (patch) | |
tree | fe69da14fad26389f39987a5d119efc122cbbfe2 /libavdevice/dshow.c | |
parent | ee4ed804853026e647f3ec1a0344ec2133a5ae1f (diff) |
dshow: initialize variable to prevent releasing random data
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavdevice/dshow.c')
-rw-r--r-- | libavdevice/dshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index 2ef313f648..fe60b9f570 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; |