utils/libav: improve robustness of asynchronous uploads
1. Use callbacks only if they're actually supported. 2. Allow asynchronous transfers for all planes, not just the ones that happen to be the same plane as allocated buffers. 3. Avoid making any assumptions about the association between planes and buffers, since in practice this is completely false anyway.
Showing with 10 additions and 9 deletions