[source] [avcodec] create resampler once