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

Gwenole Beauchesne gbeauchesne
Tue Feb 24 06:30:53 CET 2009

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  
ff_find_start_code()? IIRC, resync_marker is byte-aligned for MPEG-4  
at least. I don't know for "raw" H.263 though.

More information about the ffmpeg-devel mailing list