aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2020-08-01 13:51:59 +0800
committerLimin Wang <lance.lmwang@gmail.com>2020-08-14 22:54:01 +0800
commit392a2d0790336369185b7f2e0435844a368c1281 (patch)
treea06d66120079475e3797502d3e9b842cc325d8fc
parentad49dd7694a504d8f205b1a6a9e5347354be12d0 (diff)
downloadffmpeg-392a2d0790336369185b7f2e0435844a368c1281.tar.gz
avcodec/libsvtav1: remove unneeded svt_av1_enc_deinit_handle()
It's for FF_CODEC_CAP_INIT_CLEANUP flag. Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r--libavcodec/libsvtav1.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index d34c6b3288..eb6043bcac 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -273,23 +273,17 @@ static av_cold int eb_enc_init(AVCodecContext *avctx)
ret = config_enc_params(&svt_enc->enc_params, avctx);
if (ret < 0) {
- svt_av1_enc_deinit_handle(svt_enc->svt_handle);
- svt_enc->svt_handle = NULL;
av_log(avctx, AV_LOG_ERROR, "Error configuring encoder parameters\n");
return ret;
}
svt_ret = svt_av1_enc_set_parameter(svt_enc->svt_handle, &svt_enc->enc_params);
if (svt_ret != EB_ErrorNone) {
- svt_av1_enc_deinit_handle(svt_enc->svt_handle);
- svt_enc->svt_handle = NULL;
return svt_print_error(avctx, svt_ret, "Error setting encoder parameters");
}
svt_ret = svt_av1_enc_init(svt_enc->svt_handle);
if (svt_ret != EB_ErrorNone) {
- svt_av1_enc_deinit_handle(svt_enc->svt_handle);
- svt_enc->svt_handle = NULL;
return svt_print_error(avctx, svt_ret, "Error initializing encoder");
}