Skip to content
Snippets Groups Projects
Commit 06be075c authored by Laurent Aimar's avatar Laurent Aimar Committed by Janne Grunau
Browse files

xan: Prevent NULL dereferences with missing reference frame

parent c7e63198
No related branches found
No related tags found
No related merge requests found
......@@ -224,6 +224,8 @@ static inline void xan_wc3_copy_pixel_run(XanContext *s,
palette_plane = s->current_frame.data[0];
prev_palette_plane = s->last_frame.data[0];
if (!prev_palette_plane)
prev_palette_plane = palette_plane;
stride = s->current_frame.linesize[0];
line_inc = stride - width;
curframe_index = y * stride + x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment