mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-20 15:40:14 +00:00
vcomp/lavc: use fast-decode=1 for libsvtav1
set fast-decode as suggested by SVT AV1: ``` Svt[warn]: If you are using tiles with the intent of increasing the decoder speed, please also consider using --fast-decode 1, especially if the intended decoder is running with limited multi-threading capabilities. ````
This commit is contained in:
@@ -1947,7 +1947,9 @@ static void configure_svt(AVCodecContext *codec_ctx, struct setparam_param *para
|
||||
check_av_opt_set<const char *>(codec_ctx->priv_data, "preset",
|
||||
preset);
|
||||
#if LIBAVCODEC_VERSION_INT > AV_VERSION_INT(59, 21, 100)
|
||||
if (int ret = av_opt_set(codec_ctx->priv_data, "svtav1-params", "tile-columns=2:tile-rows=2", 0)) {
|
||||
if (int ret = av_opt_set(
|
||||
codec_ctx->priv_data, "svtav1-params",
|
||||
"fast-decode=1:tile-columns=2:tile-rows=2", 0)) {
|
||||
print_libav_error(LOG_LEVEL_WARNING, MOD_NAME "Unable to set svtav1-params for SVT", ret);
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user