Fix one more deprecation with newer libav.
Revert "Update ffdecode.c to work with newer libav."

This reverts commit 1ffd4f97fc4457d2f813f5d0763b346030f929b0.
Make use of avresample optional.

This lets us compile on platforms that do not support it, using
the old audio_resample code.