flacenc: calculate lower sum levels in-place.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sat, 22 Nov 2014 19:05:08 +0000 (20:05 +0100)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Wed, 17 Dec 2014 03:27:09 +0000 (04:27 +0100)
commit254da44bf97e4d5d919a5363f476f936f3c06ccd
tree2a77e0963fee4e972b41556b54099f94c94b8cd2
parentabbcc68e5cefc09265d2665e507f69907cd5b8ca
flacenc: calculate lower sum levels in-place.

Should improve cache usage and reduces stack usage.
Also reduces number of copies in case many levels
have the same number of bits.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/flacenc.c