[mythtv] DVB Channel Change Patch..

Kenneth Aafløy ke-aa at frisurf.no
Wed Jul 23 19:33:32 EDT 2003


Isaac Richards wrote:
> On Wednesday 23 July 2003 11:56 am, Kenneth Aafløy wrote:
> > Isaac Richards wrote:
> > > On Wednesday 23 July 2003 11:25 am, Kenneth Aafløy wrote:
> > > > Hi!
> > > >
> > > at least, if it's direct rendering it'll already have used the wrong
> > > sized buffers by then.  You need to test in get_avf_buffer() as well
to
> > > see if things have changed there.
> > >
> > The parameters are switched that late because we need to decode 1 frame
in
> > AvFormatDecoder::GetFrame to get parameters, the we discard that frame
> > (which was rendered to old buffer), and do a reset (framesPlayed ==0),
> > which will when it is reset (frameNumber == 0) switch resolution in
> > NuppelVideoPlayer::OutputVideoLoop.
>
> If the new framesize is larger than the old one, I don't see how that can
> possibly work without overwriting ends of the video buffers.

Ahh, see your point!

Walking on thin ice here, but does avcodec limit it's wiriting based on the
old width/height parameters, they have not yet been updated..

Kenneth.



More information about the mythtv-dev mailing list