]> git.sesse.net Git - ffmpeg/commit
opus_pvq: merge band encoding and decoding into one function
authorRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 27 Apr 2017 01:15:36 +0000 (02:15 +0100)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Thu, 27 Apr 2017 01:18:32 +0000 (02:18 +0100)
commitf16180f44859587e0211170bd82b1bfd26f24b5a
treefb2c650ee746d6eb8fb271358b39b4c62cadeb3d
parent18a0d9d7ad0292ce37f5262bda92ebfdd33bf31d
opus_pvq: merge band encoding and decoding into one function

Most code between the 2 functions was duplicated which made keeping
both in sync difficult.

This also fixes some discovered issues with encoding (incorrect
TF switching buffers) and reduces stack usage (reuse the already
allocated CeltFrame->scratch buffer for the quantized coefficients).

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
libavcodec/opus_pvq.c