[FFmpeg-cvslog] swscale/utils: remove redundant NULL checks before sws_freeVec()

Michael Niedermayer git at videolan.org
Tue Sep 17 22:01:49 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Sep 17 21:48:54 2013 +0200| [2d28950da9b2733e2630d3c5aa8a85fd4793f7f5] | committer: Michael Niedermayer

swscale/utils: remove redundant NULL checks before sws_freeVec()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d28950da9b2733e2630d3c5aa8a85fd4793f7f5
---

 libswscale/utils.c |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index 68c5807..05ab0c6 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);
 }
 



More information about the ffmpeg-cvslog mailing list