[FFmpeg-cvslog] libkvazaar: Remove unnecessary NULL checks

Arttu Ylä-Outinen git at videolan.org
Wed Oct 7 16:24:08 CEST 2015


ffmpeg | branch: master | Arttu Ylä-Outinen <arttu.yla-outinen at tut.fi> | Mon Sep 28 11:03:07 2015 +0300| [425d6134ed88f00927fe7fc225f940cfc43f2d76] | committer: Arttu Ylä-Outinen

libkvazaar: Remove unnecessary NULL checks

Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen at tut.fi>

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

 libavcodec/libkvazaar.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/libkvazaar.c b/libavcodec/libkvazaar.c
index 7430e0a..aaaf1f7 100644
--- a/libavcodec/libkvazaar.c
+++ b/libavcodec/libkvazaar.c
@@ -106,8 +106,8 @@ static av_cold int libkvazaar_init(AVCodecContext *avctx)
     cfg = NULL;
 
 done:
-    if (cfg) api->config_destroy(cfg);
-    if (enc) api->encoder_close(enc);
+    api->config_destroy(cfg);
+    api->encoder_close(enc);
 
     return retval;
 }
@@ -215,8 +215,8 @@ static int libkvazaar_encode(AVCodecContext *avctx,
     }
 
 done:
-    if (img_in) ctx->api->picture_free(img_in);
-    if (data_out) ctx->api->chunk_free(data_out);
+    ctx->api->picture_free(img_in);
+    ctx->api->chunk_free(data_out);
     return retval;
 }
 



More information about the ffmpeg-cvslog mailing list