summaryrefslogtreecommitdiff
path: root/libavcodec/libdavs2.c
diff options
context:
space:
mode:
authorhwren <hwrenx@126.com>2019-01-24 23:16:18 +0800
committerJun Zhao <mypopydev@gmail.com>2019-02-19 13:21:04 +0800
commitff03418348dda5b8353e5fdcf7c7ff75472b6074 (patch)
tree436d7bc04cbf314fd78c1eea118a4b9102f9379d /libavcodec/libdavs2.c
parent11751f62520b0b5a575abb5a8ce061a727eb2668 (diff)
lavc/libdavs2: fix parameter setting error
Signed-off-by: hwrenx <hwrenx@126.com>
Diffstat (limited to 'libavcodec/libdavs2.c')
-rw-r--r--libavcodec/libdavs2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libdavs2.c b/libavcodec/libdavs2.c
index cf7565659c..080872195a 100644
--- a/libavcodec/libdavs2.c
+++ b/libavcodec/libdavs2.c
@@ -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.");