diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-09-17 21:48:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-09-17 21:48:54 +0200 |
commit | 2d28950da9b2733e2630d3c5aa8a85fd4793f7f5 (patch) | |
tree | 6674ec487ed67948a26a0b909c7e1bab6a85a265 | |
parent | a446657d8cc2528e8e366236f2ba9b08069ce17a (diff) | |
download | ffmpeg-2d28950da9b2733e2630d3c5aa8a85fd4793f7f5.tar.gz |
swscale/utils: remove redundant NULL checks before sws_freeVec()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswscale/utils.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 68c580735e..05ab0c6f86 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1953,14 +1953,10 @@ void sws_freeFilter(SwsFilter *filter) if (!filter) return; - if (filter->lumH) - sws_freeVec(filter->lumH); - if (filter->lumV) - sws_freeVec(filter->lumV); - if (filter->chrH) - sws_freeVec(filter->chrH); - if (filter->chrV) - sws_freeVec(filter->chrV); + sws_freeVec(filter->lumH); + sws_freeVec(filter->lumV); + sws_freeVec(filter->chrH); + sws_freeVec(filter->chrV); av_free(filter); } |