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

Gwenole Beauchesne gbeauchesne
Tue Feb 24 15:53:26 CET 2009

On Tue, 24 Feb 2009, Michael Niedermayer wrote:

> On Tue, Feb 24, 2009 at 06:30:53AM +0100, Gwenole Beauchesne wrote:
>> Le 23 f?vr. 09 ? 23:14, Michael Niedermayer a ?crit :
>>>>> either way duplicating the resync code is not ok
>>>> I had hoped you'd have an idea how to factorize it. ;-)
>>> The first thing i see is that ff_h263_resync() is not designed
>>> to skip slices, its not fast at that, rather its designed to skip a
>>> few
>>> bytes after a slice has been decoded.
>> Would that be OK to traverse the slice at a byte level as the
> yes

Attached. Rationale: resync_marker is byte-aligned, and something non-zero 
following the 16-bit 0 value obviously does contain the '1' bit 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.h263.find_resync_marker.patch
Type: text/x-diff
Size: 1559 bytes
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090224/2b9980d0/attachment.patch>

More information about the ffmpeg-devel mailing list