mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
2c2e727088
commit
989e11acb6
@ -432,8 +432,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…
Reference in New Issue
Block a user