Browse Source

lavc/libdavs2: fix parameter setting error

Signed-off-by: hwrenx <hwrenx@126.com>
tags/n4.2
hwren Jun Zhao 7 years ago
parent
commit
ff03418348
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/libdavs2.c

+ 1
- 1
libavcodec/libdavs2.c View File

@@ -45,9 +45,9 @@ static av_cold int davs2_init(AVCodecContext *avctx)
/* init the decoder */
cad->param.threads = avctx->thread_count;
cad->param.info_level = 0;
cad->decoder = davs2_decoder_open(&cad->param);
cad->param.disable_avx = !(cpu_flags & AV_CPU_FLAG_AVX &&
cpu_flags & AV_CPU_FLAG_AVX2);
cad->decoder = davs2_decoder_open(&cad->param);

if (!cad->decoder) {
av_log(avctx, AV_LOG_ERROR, "decoder created error.");


Loading…
Cancel
Save