zmbvenc: use the AVFrame API properly.