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

Gwenole Beauchesne gbeauchesne
Mon Feb 23 19:47:49 CET 2009

Le 23 f?vr. 09 ? 19:15, Michael Niedermayer a ?crit :

> On Mon, Feb 23, 2009 at 04:08:03PM +0100, Gwenole Beauchesne wrote:
>> Hi,
>> This patch adds ff_h263_find_resync_marker() to find the bit  
>> position of
>> the next resync_marker, if any. This is only useful to simplify  
>> MPEG-4
>> HWAccel patch. Besides, it's also the correct fix because  
>> ff_h263_resync()
>> will alter the current slice info (s->qscale for instance) whereas  
>> we have
>> not called AVHWAccel::decode_slice() yet.
> cant
> s->current_picture.qscale_table
> be used to easily get the previous qscale?

Well, qscale was only an example and other members are altered...  
Actually, ff_h263_resync() is doing three things at once.

> either way duplicating the resync code is not ok

I had hoped you'd have an idea how to factorize it. ;-)

More information about the ffmpeg-devel mailing list