avcodec/snowenc: convert speed relevant asserts to av_assert2()