diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:17:12 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-28 18:17:12 +0100 |
commit | 9c3a8693a20da3ad89a327bf778e13c2cd74c81c (patch) | |
tree | cc1ec492ddaa86634b6262576dd567a77b2368c3 | |
parent | a3f6e8c4d926f55456e1f3ca8587c38bf3c82e09 (diff) | |
download | ffmpeg-9c3a8693a20da3ad89a327bf778e13c2cd74c81c.tar.gz |
avdevice/dshow: Remove unneeded NULL checks
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavdevice/dshow.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c index b20eab679b..f326ca2bdc 100644 --- a/libavdevice/dshow.c +++ b/libavdevice/dshow.c @@ -294,8 +294,7 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum, } fail1: - if (buf) - av_free(buf); + av_free(buf); if (bag) IPropertyBag_Release(bag); IMoniker_Release(m); @@ -458,8 +457,7 @@ next: } end: IAMStreamConfig_Release(config); - if (caps) - av_free(caps); + av_free(caps); if (pformat_set) *pformat_set = format_set; } |