av_aresample: Allow changing sample format and channel layout as well