Skip to content
Snippets Groups Projects
Commit cf617fda authored by Victorien Le Couviour--Tuffet's avatar Victorien Le Couviour--Tuffet
Browse files

threading: Ensure passing the correct retval to decode_frame_exit

We must reload error just before calling dav1d_decode_frame_exit, as
it may have become stale between the last load and that call.
This can result in crashes since we signal a seemingly successfully decoded
frame, when it's not.
Reloading error within the frame done condition's body ensures a non-stale
value, as we use 'f->task_thread.task_counter == 0' to ensure all other
threads / tasks have already completed when entering it. In other words, only
the last thread still working on this frame can execute this code, after
all other threads have returned to doing something else.
parent 9d645918
No related branches found
No related tags found
1 merge request!1495threading: Ensure passing the correct retval to decode_frame_exit
Pipeline #322187 passed with stages
in 8 minutes and 25 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment