Commit df363756 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vdpau/chroma: NULL dereference on error

parent 23e14ee5
......@@ -324,6 +324,8 @@ static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
void *planes[3];
uint32_t pitches[3];
picture_CopyProperties(dst, src);
for (int i = 0; i < dst->i_planes; i++)
{
planes[i] = dst->p[i].p_pixels;
......@@ -346,7 +348,6 @@ static picture_t *VideoExport(filter_t *filter, picture_t *src, picture_t *dst)
picture_Release(dst);
dst = NULL;
}
picture_CopyProperties(dst, src);
picture_Release(src);
return dst;
}
......
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