/// <summary> /// fill from avframe to renderbuffer /// </summary> /// <param name="renderbuffer"></param> public void Update(ref frameinfo renderbuffer, IntPtr avframe) { if (renderbuffer == null) { renderbuffer = new frameinfo(_renderer, _video, _player); //this.Frame = this._video.AllocateFrame(this.allocfunc, this.lockfunc, this.unlockfunc); //this.Buffer = this._renderer.GetFrame(); } this._video.FillFrame(renderbuffer.Frame, avframe); // this._lasttime = frame.Frame.Time; renderbuffer.Frame.Time += _video.Frame(this._player.basetime, this._player.timebase); }