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 .