Commit ff2dcd6b authored by Derek Buitenhuis's avatar Derek Buitenhuis

decode: Fix unchecked malloc in decode_frame

Signed-off-by: Derek Buitenhuis's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parent 9e73bb8f
......@@ -2285,6 +2285,7 @@ int decode_frame(Dav1dFrameContext *const f) {
f->frame_thread.tile_start_off =
malloc(sizeof(*f->frame_thread.tile_start_off) *
f->frame_hdr.tiling.cols * f->frame_hdr.tiling.rows);
if (!f->frame_thread.tile_start_off) return -ENOMEM;
}
f->n_ts = f->frame_hdr.tiling.cols * f->frame_hdr.tiling.rows;
}
......
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