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

Showing the changes to libavcodec (1 of 1 file). Show all

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
656 "frame %5d, %s(%3d, %3d) failed with %d\r\n",656 "frame %5d, %s(%3d, %3d) failed with %d\r\n",
657 (int)fc->decode_order, task_name[stage], t->rx, t->ry, ret);657 (int)fc->decode_order, task_name[stage], t->rx, t->ry, ret);
658 }658 }
659 if (!ret)
660 task_stage_done(t, s);
659 }661 }
660
661 task_stage_done(t, s);
662 return;662 return;
663}663}
664 664

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