rpza: use the AVFrame API properly.