[mythtv] [PATCH] better avi seek support

Isaac Richards ijr at case.edu
Thu May 5 01:04:10 UTC 2005


On Wednesday 04 May 2005 07:42 pm, Mark Spieth wrote:
> Im not sure how the whole thing hangs together but the IO routines are
> overridden to use ringbuffer functions and seek only works on a byte offset
> value.
> the avformat functions including seek and read I dont believe are used as
> the stream interface is used.
> this might confuse the stream reader. so I chose to remain with the
> existing interface and just adjust things minimally.
> as I said its a big hack and there is probably a better way.
> but the url_fseek call in avi_read_seek is the problem I had to get around
> for minimum impact on the ringbuffer stream reader (local file mode).
> does the avi_read_packet function get called eventually?
> as far as I can tell the answer is no. thus no byteiocontext is being used.
> I could be wrong (and probably am =).

I'm _fairly_ sure that av_seek_frame() should do the right thing for an avi, 
even with our replaced i/o functions.  We just need a frame number, that way, 
and it'll use avformat's internal index.

Isaac


More information about the mythtv-dev mailing list