Fix resampling for ffmpeg.