History

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.

Nuo Mi committed 1 year ago

Commit eb67e601 parent 4ec767a1 file · +2 −2Browse files

Unified · Split

libavcodec/vvc/thread.c+2−2
@@ -656,9 +656,9 @@ static void task_run_stage(VVCTask *t, VVCContext *s, VVCLocalContext *lc) · 655 unmodified lines
656656 "frame %5d, %s(%3d, %3d) failed with %d\r\n",
657657 (int)fc->decode_order, task_name[stage], t->rx, t->ry, ret);
658658 }
659+ if (!ret)
660+ task_stage_done(t, s);
659661 }
660−
661− task_stage_done(t, s);
662662 return;
663663 }
664664

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