[FFmpeg-devel] [PATCH] Add ff_h263_find_resync_marker() function (take 3)
Michael Niedermayer
michaelni
Tue Feb 24 17:12:03 CET 2009
On Tue, Feb 24, 2009 at 05:02:57PM +0100, Gwenole Beauchesne wrote:
> On Tue, 24 Feb 2009, Michael Niedermayer wrote:
>
>>> + for (p += 2; p < end; p++) {
>>> + if ((m = (m << 8) | p[0]) == 0 && p + 1 < end && p[1])
>>> + return p - 1;
>>> + }
>>
>> your code does more than twice as much as needed
>> try something like:
>
> It works, thanks. New patch attached.
applied
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090224/810bb9c9/attachment.pgp>
More information about the ffmpeg-devel
mailing list