Skip to content

Commit

Permalink
lavc/libdavs2: fix parameter setting error
Browse files Browse the repository at this point in the history
Signed-off-by: hwrenx <hwrenx@126.com>
  • Loading branch information
hwrenx authored and mypopydev committed Feb 19, 2019
1 parent 11751f6 commit ff03418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/libdavs2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit ff03418

Please sign in to comment.