[FFmpeg-cvslog] avcodec/mpeg4videodec: Keep skipped_last_frame in sync between threads

Andreas Rheinhardt git at videolan.org
Fri May 16 03:15:04 EEST 2025


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu May  1 21:06:45 2025 +0200| [2d4d7df10cccb61e26a9d44046879b127da36255] | committer: Andreas Rheinhardt

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 <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d4d7df10cccb61e26a9d44046879b127da36255
---

 libavcodec/mpeg4videodec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 1ece371bdb..461f452f40 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -3871,6 +3871,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));



More information about the ffmpeg-cvslog mailing list