cllc: simplify/fix swapped data buffer allocation.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 27 Aug 2012 20:11:08 +0000 (20:11 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Tue, 28 Aug 2012 15:37:53 +0000 (11:37 -0400)
commit998f92d680554cbefb4d34c7b3a0a791f94e8f00
treeb5ad0cde52fae76300b97156f16aacde3b0ce0b7
parent6af2480aa62e96fbfa4f2f99b80280ce77dafafd
cllc: simplify/fix swapped data buffer allocation.

Using the malloc variant avoids pointless memcpy on size
increase and simplifies handling allocation failure.
Also change code to ensure that allocation, bswap and bitstream
reader all use the same size, even when the packet size is odd
for example.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/cllc.c