diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-04 12:46:45 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-05-05 19:06:18 +0200 |
commit | 2ffa8be53b5c469379cb5cfc0f33d5de516756f0 (patch) | |
tree | 7aea02daa2e2f8fbd5644bb87dfef84dab59db0b /tests/ref/fate/g723_1-dec-6 | |
parent | 63a4cadd27c9ba9d45c2c248d2d4f699f9819ddf (diff) | |
download | ffmpeg-2ffa8be53b5c469379cb5cfc0f33d5de516756f0.tar.gz |
avformat/nutenc: Reuse dynamic buffers when possible
NUT uses variable-length integers in order to for length fields.
Therefore the NUT muxer often writes data into a dynamic buffer in order
to get the length of it, then writes the length field using the fewest
amount of bytes needed. To do this, a new dynamic buffer was opened,
used and freed for each element which involves lots of allocations. This
commit changes this: The dynamic buffers are now resetted and reused.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'tests/ref/fate/g723_1-dec-6')
0 files changed, 0 insertions, 0 deletions