Browse Source

libkvazaar: Remove unnecessary NULL checks

Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi>
tags/n3.0
Arttu Ylä-Outinen 10 years ago
parent
commit
425d6134ed
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/libkvazaar.c

+ 4
- 4
libavcodec/libkvazaar.c View File

@@ -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;
}



Loading…
Cancel
Save