[mythtv] [PATCH] better avi seek support

Isaac Richards ijr at case.edu
Wed May 4 19:51:15 UTC 2005


On Tuesday 03 May 2005 07:58 am, Mark Spieth wrote:
> I have implemented a patch that allows avis to be played and seeked
> correctly. it shows correct length too! I know its a bit of a nasty hack.
> The reasons for doing it this way is to minimise the impact on libavformat
> which Isaac has stressed. Thus avidec.c has 1 new function and is thus easy
> to merge.
> The new function is the same as avi_read_seek except without the url_fseek.
> It is needed to sync the audio and video stream timestamps otherwise they
> diverge uncontrollably. It is only activated if there is an index in the
> avi file.
> The structures in avidec are partially reproduced in avformatdecoder.cpp to
> allow scanning of the index table. This has been annoying me for a while
> now and have finally done something about it. note that I use myth to play
> my avi's instead of mplayer or xine due to timestretch and thus it was
> higher on my priority list. feedback welcome.

Is there any reason why the avformat seeking functions can't be used for cases 
where there's no myth seektable?

Isaac


More information about the mythtv-dev mailing list