History

avcodec/mpeg4videodec: Keep skipped_last_frame in sync between threads

Otherwise the output may depend upon the number of frame threads used.

Andreas Rheinhardt committed 1 year ago

Commit 2d4d7df1 parent dfb44771 file · +1 −0Browse files

Unified · Split

libavcodec/mpeg4videodec.c+1−0
@@ -3871,6 +3871,7 @@ static int mpeg4_update_thread_context(AVCodecContext *dst, · 3870 unmodified lines
3871 s->cplx_estimation_trash_p = s1->cplx_estimation_trash_p;3871 s->cplx_estimation_trash_p = s1->cplx_estimation_trash_p;
3872 s->cplx_estimation_trash_b = s1->cplx_estimation_trash_b;3872 s->cplx_estimation_trash_b = s1->cplx_estimation_trash_b;
3873 s->rgb = s1->rgb;3873 s->rgb = s1->rgb;
3874 s->m.skipped_last_frame = s1->m.skipped_last_frame;
3874 3875
3875 memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift));3876 memcpy(s->sprite_shift, s1->sprite_shift, sizeof(s1->sprite_shift));
3876 memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj));3877 memcpy(s->sprite_traj, s1->sprite_traj, sizeof(s1->sprite_traj));

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t