mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 00:32:31 +00:00
avcodec/vvcdec: schedule next stage only if the current stage reports no error
If the current stage reports an error, some variables may not be correctly initialized. Scheduling the next stage could lead to the use of uninitialized variables.
This commit is contained in:
parent
4ec767abcc
commit
eb67e60cb0
@ -656,9 +656,9 @@ static void task_run_stage(VVCTask *t, VVCContext *s, VVCLocalContext *lc)
|
||||
"frame %5d, %s(%3d, %3d) failed with %d\r\n",
|
||||
(int)fc->decode_order, task_name[stage], t->rx, t->ry, ret);
|
||||
}
|
||||
if (!ret)
|
||||
task_stage_done(t, s);
|
||||
}
|
||||
|
||||
task_stage_done(t, s);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user