aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2022-01-06 20:07:07 -0300
committerJames Almer <jamrial@gmail.com>2022-01-06 22:57:46 -0300
commit3e17e0e5eff896f43654635bd3219da56f807f11 (patch)
treeb96148720ae41ba88f42729b45ed3c4329c3907d
parent2b541b8c1d8b214d39c5f86fe8dc3a2aebe08f6d (diff)
downloadffmpeg-3e17e0e5eff896f43654635bd3219da56f807f11.tar.gz
avcodec/libdav1d: honor the requested strict_std_compliance level on supported builds
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/libdav1d.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/libdav1d.c b/libavcodec/libdav1d.c
index bbc81a9dc9..8e45f533cb 100644
--- a/libavcodec/libdav1d.c
+++ b/libavcodec/libdav1d.c
@@ -236,6 +236,9 @@ static av_cold int libdav1d_init(AVCodecContext *c)
s.all_layers = dav1d->all_layers;
if (dav1d->operating_point >= 0)
s.operating_point = dav1d->operating_point;
+#if FF_DAV1D_VERSION_AT_LEAST(6,2)
+ s.strict_std_compliance = c->strict_std_compliance > 0;
+#endif
#if FF_DAV1D_VERSION_AT_LEAST(6,0)
if (dav1d->frame_threads || dav1d->tile_threads)