Change to libav 9 resampling (avresample)
Some of the previous libav stuff removed, re-add later