libswscale/utils.c: Fix bug #8255