[FFmpeg-devel] [PATCH] Maintain pointer to end of AVFormatContext.packet_buffer list

Michael Niedermayer michaelni
Wed Aug 6 23:40:05 CEST 2008

On Wed, Aug 06, 2008 at 01:55:49AM +0100, Mans Rullgard wrote:
> This changes add_to_pktbuf() to maintain a pointer to the last entry
> in the list, avoiding a linear walk-through on each call.  Before this
> change, add_to_pktbuf() could take a significant amount of time (10%
> of total decoding time), even with input files of several minutes.
> After the change, the time spent in this function is barely measurable
> with oprofile.


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/20080806/7d5ef005/attachment.pgp>

More information about the ffmpeg-devel mailing list