diff mbox series

[FFmpeg-devel,03/10] avcodec/dovi_rpu: properly replace context header

Message ID 20240403154330.71585-3-ffmpeg@haasn.xyz
State New
Headers show
Series [FFmpeg-devel,01/10] avcodec: add dolbyvision option | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Niklas Haas April 3, 2024, 3:43 p.m. UTC
From: Niklas Haas <git@haasn.dev>

This was never set in ff_dovi_ctx_replace(), leading to possibly
out-of-date when copying from a sub-thread to the main thread.
---
 libavcodec/dovi_rpu.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavcodec/dovi_rpu.c b/libavcodec/dovi_rpu.c
index d95c7e03af9..bfb7b9fe661 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++)