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:
Martin Pulec
2024-07-02 10:12:42 +02:00
parent fa8bb8ca8e
commit 4e63c0ce8b

View File

@@ -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