lavc/libxavs2: fix intra period meaning conflict
authorhwren <hwrenx@126.com>
Thu, 18 Oct 2018 15:02:09 +0000 (23:02 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 28 Oct 2018 06:20:29 +0000 (14:20 +0800)
Signed-off-by: hwren <hwrenx@126.com>
libavcodec/libxavs2.c

index 1152c63..f07fc63 100644 (file)
@@ -85,8 +85,8 @@ static av_cold int xavs2_init(AVCodecContext *avctx)
     xavs2_opt_set2("Log",       "%d", cae->log_level);
     xavs2_opt_set2("Preset",    "%d", cae->preset_level);
 
-    /* not the same parameter as the IntraPeriod in xavs2 log */
-    xavs2_opt_set2("IntraPeriod",       "%d", avctx->gop_size);
+    xavs2_opt_set2("IntraPeriodMax",    "%d", avctx->gop_size);
+    xavs2_opt_set2("IntraPeriodMin",    "%d", avctx->gop_size);
 
     xavs2_opt_set2("ThreadFrames",      "%d", avctx->thread_count);
     xavs2_opt_set2("ThreadRows",        "%d", cae->lcu_row_threads);