lavc: Rewrite VAAPI decode infrastructure