Commit 425d6134 authored by Arttu Ylä-Outinen's avatar Arttu Ylä-Outinen

libkvazaar: Remove unnecessary NULL checks

Signed-off-by: 's avatarArttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
parent b9446d0b
...@@ -106,8 +106,8 @@ static av_cold int libkvazaar_init(AVCodecContext *avctx) ...@@ -106,8 +106,8 @@ static av_cold int libkvazaar_init(AVCodecContext *avctx)
cfg = NULL; cfg = NULL;
done: done:
if (cfg) api->config_destroy(cfg); api->config_destroy(cfg);
if (enc) api->encoder_close(enc); api->encoder_close(enc);
return retval; return retval;
} }
...@@ -215,8 +215,8 @@ static int libkvazaar_encode(AVCodecContext *avctx, ...@@ -215,8 +215,8 @@ static int libkvazaar_encode(AVCodecContext *avctx,
} }
done: done:
if (img_in) ctx->api->picture_free(img_in); ctx->api->picture_free(img_in);
if (data_out) ctx->api->chunk_free(data_out); ctx->api->chunk_free(data_out);
return retval; return retval;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment