mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-21 21:30:24 +08: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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user