[FFmpeg-devel] [PATCH] mpegts demuxer gives bogus data after seeking
Tue May 5 10:09:37 CEST 2009
> This patch won't work if user uses AVSEEK_FLAG_BYTE which does not call
> read_seek. Seek detection must be added in mpegts_read_frame, and if
> seek is detected flush must be done.
That is indeed true, there is another such case in
av_estimate_timings_from_pts(), which seeks at the end.
However, that would incur an url_ftell() for every packet read,
which I would rather avoid. OTOH, it may be already there..
It would perhaps better be solved by the ongoing seek-API redesign,
where _every_ seek should go through a demuxer callback, no?
More information about the ffmpeg-devel