swscale: use SwsContext for av_log when available