[FFmpeg-devel] [PATCH] Seeking and resync support in nuv demuxer
elupus
elupus
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.
Joakim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-added-read_timestamp-to-nuv-demuxer-so-general-seeki.patch
Type: text/x-patch
Size: 3238 bytes
Desc: Attached file: 0001-added-read_timestamp-to-nuv-demuxer-so-general-seeki.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080607/92ae99ec/attachment.bin>
More information about the ffmpeg-devel
mailing list