avdevice/dshow: Remove NULL check on pin

The pointer is used before the check

Fixes: CID1591884 Dereference before null check

Sponsored-by: Sovereign Tech Fund
Reviewed-by: Roger Pack <rogerdpack@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 989e11acb6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
release/6.1
Michael Niedermayer 7 months ago
parent 09c9cc0cc2
commit 24717b7be6
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64
  1. 4
      libavdevice/dshow.c

@ -431,8 +431,8 @@ dshow_get_device_media_types(AVFormatContext *avctx, enum dshowDeviceType devtyp
IEnumMediaTypes_Release(types);
if (p)
IKsPropertySet_Release(p);
if (pin)
IPin_Release(pin);
IPin_Release(pin);
}
IEnumPins_Release(pins);

Loading…
Cancel
Save