Commit 0bda46d185 for ffmpeg
commit 0bda46d1853be8931a302eeb303e430c34a326d5
Author: Kacper Michajłow <kasper93@gmail.com>
Date: Tue Sep 8 06:10:06 2026 +0200
avcodec/h2645_sei: copy alternative transfer characteristics between frame threads
The alternative transfer characteristics SEI persists until the next one
is received, but ff_h2645_sei_ctx_replace() did not copy it to the next
frame thread. HEVC copied it in its own update_thread_context()
instead, now both do.
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
diff --git a/libavcodec/h2645_sei.c b/libavcodec/h2645_sei.c
index 735199733c..af952d9d7a 100644
--- a/libavcodec/h2645_sei.c
+++ b/libavcodec/h2645_sei.c
@@ -355,6 +355,7 @@ int ff_h2645_sei_ctx_replace(H2645SEI *dst, const H2645SEI *src)
}
dst->itut_t35.aom_film_grain.enable = src->itut_t35.aom_film_grain.enable;
+ dst->alternative_transfer = src->alternative_transfer;
dst->ambient_viewing_environment = src->ambient_viewing_environment;
dst->mastering_display = src->mastering_display;
dst->content_light = src->content_light;
diff --git a/libavcodec/hevc/hevcdec.c b/libavcodec/hevc/hevcdec.c
index b572d8dd11..a36ea57bc2 100644
--- a/libavcodec/hevc/hevcdec.c
+++ b/libavcodec/hevc/hevcdec.c
@@ -4359,7 +4359,6 @@ static int hevc_update_thread_context(AVCodecContext *dst,
s->sei.common.frame_packing = s0->sei.common.frame_packing;
s->sei.common.display_orientation = s0->sei.common.display_orientation;
- s->sei.common.alternative_transfer = s0->sei.common.alternative_transfer;
s->sei.tdrdi = s0->sei.tdrdi;
s->sei.recovery_point = s0->sei.recovery_point;
s->recovery_poc = s0->recovery_poc;