]> git.sesse.net Git - ffmpeg/commitdiff
lavc/libdavs2: fix parameter setting error
authorhwren <hwrenx@126.com>
Thu, 24 Jan 2019 15:16:18 +0000 (23:16 +0800)
committerJun Zhao <mypopydev@gmail.com>
Tue, 19 Feb 2019 05:21:04 +0000 (13:21 +0800)
Signed-off-by: hwrenx <hwrenx@126.com>
libavcodec/libdavs2.c

index cf7565659c8e2e306ef3bad23d49e0cb63642d4b..080872195a0ccfdb59a22224408ba53cb4d4920b 100644 (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.");