• Måns Rullgård's avatar
    Maintain pointer to end of AVFormatContext.packet_buffer list · 5c5b1731
    Måns Rullgård authored
    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.
    
    Originally committed as revision 14654 to svn://svn.ffmpeg.org/ffmpeg/trunk
    5c5b1731
Name
Last commit
Last update
doc Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswscale Loading commit data...
tests Loading commit data...
tools Loading commit data...
vhook Loading commit data...
COPYING.GPL Loading commit data...
COPYING.LGPL Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
Doxyfile Loading commit data...
INSTALL Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
common.mak Loading commit data...
configure Loading commit data...
ffmpeg.c Loading commit data...
ffplay.c Loading commit data...
ffserver.c Loading commit data...
ffserver.h Loading commit data...
output_example.c Loading commit data...
subdir.mak Loading commit data...
version.sh Loading commit data...