mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-24 01:14:05 +08:00
avdevice/dshow: Remove unneeded NULL checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
|
|||||||
}
|
}
|
||||||
|
|
||||||
fail1:
|
fail1:
|
||||||
if (buf)
|
av_free(buf);
|
||||||
av_free(buf);
|
|
||||||
if (bag)
|
if (bag)
|
||||||
IPropertyBag_Release(bag);
|
IPropertyBag_Release(bag);
|
||||||
IMoniker_Release(m);
|
IMoniker_Release(m);
|
||||||
@@ -458,8 +457,7 @@ next:
|
|||||||
}
|
}
|
||||||
end:
|
end:
|
||||||
IAMStreamConfig_Release(config);
|
IAMStreamConfig_Release(config);
|
||||||
if (caps)
|
av_free(caps);
|
||||||
av_free(caps);
|
|
||||||
if (pformat_set)
|
if (pformat_set)
|
||||||
*pformat_set = format_set;
|
*pformat_set = format_set;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user