1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avdevice/dshow: Remove unneeded NULL checks

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-12-28 18:17:12 +01:00
parent a3f6e8c4d9
commit 9c3a8693a2

View File

@ -294,7 +294,6 @@ 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);
@ -458,7 +457,6 @@ 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;