[FFmpeg-devel] [PATCH] Add ff_h263_find_resync_marker() function (take 3)

Gwenole Beauchesne gbeauchesne
Tue Feb 24 17:02:57 CET 2009


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.h263.find_resync_marker.3.patch
Type: text/x-diff
Size: 2267 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090224/0e4f6e0d/attachment.patch>



More information about the ffmpeg-devel mailing list