Make SwsContext only if OutputPixelFormat != PixelFormat