nuv: use the AVFrame API properly.