Commit 82cce09a authored by Janne Grunau's avatar Janne Grunau

do not use the picture after an allocation error

parent 014b0a06
...@@ -161,6 +161,7 @@ int dav1d_thread_picture_alloc(Dav1dThreadPicture *const p, ...@@ -161,6 +161,7 @@ int dav1d_thread_picture_alloc(Dav1dThreadPicture *const p,
picture_alloc_with_edges(&p->p, w, h, layout, bpc, p_allocator, picture_alloc_with_edges(&p->p, w, h, layout, bpc, p_allocator,
t != NULL ? sizeof(atomic_int) * 2 : 0, t != NULL ? sizeof(atomic_int) * 2 : 0,
(void **) &p->progress); (void **) &p->progress);
if (res) return res;
p->visible = visible; p->visible = visible;
p->flushed = 0; p->flushed = 0;
......
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