aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-04-03 17:06:27 +0200
committerNiklas Haas <git@haasn.dev>2024-04-22 12:17:05 +0200
commitfc616de1a53d98e5f6c4c7eba9835e33505e1dac (patch)
treedfb9cba006eef2751c5ff57739e0b37f6a2dab0b
parentd0392619a7f63db0e70dc0cd4680e4ec1a47e2a8 (diff)
downloadffmpeg-fc616de1a53d98e5f6c4c7eba9835e33505e1dac.tar.gz
avcodec/dovi_rpu: properly replace context header
This was never set in ff_dovi_ctx_replace(), leading to possibly out-of-date when copying from one thread to another.
-rw-r--r--libavcodec/dovi_rpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c
index d95c7e03af..bfb7b9fe66 100644
--- a/libavcodec/dovi_rpu.c
+++ b/libavcodec/dovi_rpu.c
@@ -75,6 +75,7 @@ void ff_dovi_ctx_replace(DOVIContext *s, const DOVIContext *s0)
{
s->logctx = s0->logctx;
s->cfg = s0->cfg;
+ s->header = s0->header;
s->mapping = s0->mapping;
s->color = s0->color;
for (int i = 0; i <= DOVI_MAX_DM_ID; i++)