mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
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>
This commit is contained in:
parent
ad49dd7694
commit
392a2d0790
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user