[FFmpeg-devel] [PATCH] Seeking and resync support in nuv demuxer
Sat Jun 7 15:22:44 CEST 2008
On Wed, 28 May 2008 21:55:30 +0200, Reimar D?ffinger wrote:
> On Wed, May 28, 2008 at 02:10:24AM +0200, elupus wrote:
>> [26 quoted lines suppressed]
> Just a quick comment: IMO you really should use the "standard" way to
> search for a pattern:
> use a uint32_t and shift in each character and compare against MKTAG(...).
> On match, for comparing the remaining 'j' you can then each time read in
> and compare a full 4 bytes, so no need for an extra loop.
So here's a updated patch that uses MKTAG and shifts in data. Not sure it
ends up much simpler.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3238 bytes
Desc: Attached file: 0001-added-read_timestamp-to-nuv-demuxer-so-general-seeki.patch
More information about the ffmpeg-devel