[MPlayer-dev-eng] .TiVo file support

Jeremy Drake mplayer at jdrake.com
Fri Dec 15 04:35:36 CET 2006


On Thu, 14 Dec 2006, Jeremy Drake wrote:

> On Thu, 14 Dec 2006, Nico Sabbi wrote:
>
> > I didn't notice this 1-byte stuff. It sucks indeed.
> > buffer the byte read in dp->buf+dp->pos until you don't have
> > any more space
>
> So did I misinterpret the meaning of dp->pos?  I thought it was for the
> position of the packet in the stream.  Does it really mean where I am in
> the buffer, and as such its value is irrelevant to whomever gets the
> packet?

I implemented something like this overriding the dp->flags variable to be
where in the buffer I am, since I don't know what the flags are for and
weren't using them for anything else.  If it turns out this is what
dp->pos is for, I can change it, but the comment in the header file seems
to make me think that I was right about dp->pos:
  off_t pos;  // position in index (AVI) or file (MPG)


-- 
Do what comes naturally now.  Seethe and fume and throw a tantrum.



More information about the MPlayer-dev-eng mailing list