ffmpeg: add --enable-avresample

This option was on by default in previous versions.

Fixes #17004.
Fixes #16348.