Commit c82cf102 authored by Janne Grunau's avatar Janne Grunau

fix mvs_ref NULL ptr dererence after allocation error

parent 52b575c8
......@@ -3178,6 +3178,10 @@ int dav1d_submit_frame(Dav1dContext *const c) {
if ((f->frame_hdr->frame_type & 1) || f->frame_hdr->allow_intrabc) {
f->mvs_ref = dav1d_ref_create(f->sb128h * 32 * f->b4_stride *
sizeof(*f->mvs));
if (!f->mvs_ref) {
res = -ENOMEM;
goto error;
}
f->mvs = f->mvs_ref->data;
if (!f->frame_hdr->allow_intrabc) {
for (int i = 0; i < 7; i++)
......
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