summaryrefslogtreecommitdiffstats
path: root/player/main.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-18 16:19:46 +0200
committerwm4 <wm4@nowhere>2014-04-30 11:45:31 +0200
commit3196f4cdd7810ebc2be72b1916f9c2f34874d510 (patch)
treed5a9d63ad3c78759ef873f1f1f9cc379dea66cb2 /player/main.c
parent4fa0853c3468cd9839029b4ecc933fbb2c34cdb7 (diff)
downloadmpv-3196f4cdd7810ebc2be72b1916f9c2f34874d510.tar.bz2
mpv-3196f4cdd7810ebc2be72b1916f9c2f34874d510.tar.xz
audio: preallocate audio buffers on resize
This avoids too many realloc() calls if the caller is appending to an audo buffer. This case is actually quite noticeable when using something that buffers a large amount of audio.
Diffstat (limited to 'player/main.c')
0 files changed, 0 insertions, 0 deletions