swresample/resample: replace assert by av_assert