Optimize memory management to create an av_packet from multiple slices:
authorRoberto Togni <r_togni@tiscali.it>
Sun, 18 Nov 2007 22:40:02 +0000 (22:40 +0000)
committerRoberto Togni <r_togni@tiscali.it>
Sun, 18 Nov 2007 22:40:02 +0000 (22:40 +0000)
commite11d0145e29c38a2721fe131728d83512e5c30b9
treec899cca0303386dd5cdf8da0ea0b95c7ea38d597
parent289987e454cf3705c9cc824fdda3e25949f78898
Optimize memory management to create an av_packet from multiple slices:
- remove memmove to pack the data, instead copy only the used areas
from the temp buffer in their final position
- use the minimum possible size for the av_packet (relevant when some
slices are missing)

Originally committed as revision 11052 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rmdec.c