sws/utils: use av_assert