avresample: Introduce AVFrame-based API