flavioribeiro / nginx-audio-track-for-hls-module

:sound: Nginx module that generates audio track for HTTP Live Streaming (HLS) streams on the fly.
GNU General Public License v3.0
136 stars 17 forks source link

Improve/remove realloc() #16

Closed flavioribeiro closed 11 years ago

flavioribeiro commented 11 years ago

it's really necessary to realloc on every write call? why not alloc a big portion of memory just one time and make the length attribute of the structure take care of where's the end of the buffer?