summaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2020-05-04 12:46:45 +0200
committerAndreas Rheinhardt <[email protected]>2020-05-05 19:06:18 +0200
commit2ffa8be53b5c469379cb5cfc0f33d5de516756f0 (patch)
tree7aea02daa2e2f8fbd5644bb87dfef84dab59db0b /tools/python
parent63a4cadd27c9ba9d45c2c248d2d4f699f9819ddf (diff)
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 <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
Diffstat (limited to 'tools/python')
0 files changed, 0 insertions, 0 deletions