mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/error_resilience: wait for previous frame to be available
This is possibly redundant but its more correct Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
488e6409df
commit
5694b28211
@ -393,6 +393,8 @@ static void guess_mv(ERContext *s)
|
||||
set_mv_strides(s, &mot_step, &mot_stride);
|
||||
|
||||
num_avail = 0;
|
||||
if (s->last_pic.motion_val[0])
|
||||
ff_thread_await_progress(s->last_pic.tf, mb_height-1, 0);
|
||||
for (i = 0; i < mb_width * mb_height; i++) {
|
||||
const int mb_xy = s->mb_index2xy[i];
|
||||
int f = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user