check memory allocation in swri_get_dither() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 196b885a5f0aa3ca022c1fa99509f47341239784) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>