swscale: check flags instead of nb_components to find if pixel format have alpha