Allocate bap and bap1 buffers using av_malloc().
authorJustin Ruggles <justin.ruggles@gmail.com>
Wed, 15 Dec 2010 21:12:28 +0000 (21:12 +0000)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 15 Dec 2010 21:12:28 +0000 (21:12 +0000)
commit171bc51c9b319e3b2b2736c511af72acf27763a9
tree422a95144842ff6af0a86372217af631b250f26d
parentbbd8f5477d29ae0d22ad0a8711d95299e009ec36
Allocate bap and bap1 buffers using av_malloc().
This reduces the memory footprint when using less than 6 channels.
Modify bit allocation to swap the 2 buffers instead of using memcpy() and use
per-block pointers for bap. This is slightly faster (0.3%) in function
cbr_bit_allocation().

Originally committed as revision 26023 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/ac3enc.c