Commit acee4345 authored by Janne Grunau's avatar Janne Grunau

frame mt: mark frame as failed in dav1d_close()

Fixes a deadlock on teardown with
clusterfuzz-testcase-minimized-dav1d_fuzzer_mt-5636065151418368. Credits
to oss-fuzz.
parent b3c522d5
......@@ -286,6 +286,10 @@ void dav1d_close(Dav1dContext **const c_out) {
// clean-up threading stuff
if (c->n_fc > 1) {
if (f->frame_hdr.refresh_context)
dav1d_cdf_thread_signal(&f->out_cdf);
dav1d_thread_picture_signal(&f->sr_cur, FRAME_ERROR,
PLANE_TYPE_ALL);
pthread_mutex_lock(&f->frame_thread.td.lock);
f->frame_thread.die = 1;
pthread_cond_signal(&f->frame_thread.td.cond);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment