imc/iac: decode directly to the user-provided AVFrame