tvheadend/tvheadend — pull request #342 by perexg (2014-03-12 16:39:13+00:00)
Title: The sbuf allocation cleanups and fixups for memory leaks

This is an attempt to fix the nonoptimal memory allocations. The old
code tries to allocate new chunks based on maximum packet value, but
the streams contain mostly short chunks. Also, in some cases, we know
the fixed sbuf size, so use it.

I found also some memory leaks in parse_avc.c and mkmux.c .