mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01: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>
(cherry picked from commit 989e11acb6)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
04abb63b7c
commit
45a91d998f
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue