libxavs: use the AVFrame API properly.