Commit a0fb010f authored by Janne Grunau's avatar Janne Grunau

picture: free pic_ctx on dav1d_ref_wrap error

parent 488374c7
Pipeline #3417 passed with stages
in 7 minutes and 5 seconds
......@@ -133,6 +133,7 @@ static int picture_alloc_with_edges(Dav1dPicture *const p,
if (!(p->ref = dav1d_ref_wrap(p->data[0], free_buffer, pic_ctx))) {
p_allocator->release_picture_callback(p, p_allocator->cookie);
fprintf(stderr, "Failed to wrap picture: %s\n", strerror(errno));
return -ENOMEM;
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