From a7b660ce8aed5bb031617df95170ba34265190e0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Thu, 1 May 2025 21:06:45 +0200 Subject: [PATCH 40/44] avcodec/mpeg4videodec: Keep skipped_last_frame in sync between threads Otherwise the output may depend upon the number of frame threads used. Signed-off-by: Andreas Rheinhardt --- libavcodec/mpeg4videodec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index b4a1e2ffba..d6740c8872 100644 --- a/libavcodec/mpeg4videodec.c +++ b/libavcodec/mpeg4videodec.c @@ -3856,6 +3856,7 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, s->cplx_estimation_trash_p = s1->cplx_estimation_trash_p; s->cplx_estimation_trash_b = s1->cplx_estimation_trash_b; s->rgb = s1->rgb; + s->m.skipped_last_frame = s1->m.skipped_last_frame; memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift)); memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj)); -- 2.45.2