Commit ff034183 authored by hwren's avatar hwren Committed by Jun Zhao

lavc/libdavs2: fix parameter setting error

Signed-off-by: 's avatarhwrenx <hwrenx@126.com>
parent 11751f62
...@@ -45,9 +45,9 @@ static av_cold int davs2_init(AVCodecContext *avctx) ...@@ -45,9 +45,9 @@ static av_cold int davs2_init(AVCodecContext *avctx)
/* init the decoder */ /* init the decoder */
cad->param.threads = avctx->thread_count; cad->param.threads = avctx->thread_count;
cad->param.info_level = 0; cad->param.info_level = 0;
cad->decoder = davs2_decoder_open(&cad->param);
cad->param.disable_avx = !(cpu_flags & AV_CPU_FLAG_AVX && cad->param.disable_avx = !(cpu_flags & AV_CPU_FLAG_AVX &&
cpu_flags & AV_CPU_FLAG_AVX2); cpu_flags & AV_CPU_FLAG_AVX2);
cad->decoder = davs2_decoder_open(&cad->param);
if (!cad->decoder) { if (!cad->decoder) {
av_log(avctx, AV_LOG_ERROR, "decoder created error."); av_log(avctx, AV_LOG_ERROR, "decoder created error.");
......
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