opus_pvq: improve PVQ search for low Ks
authorRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 24 Feb 2017 07:03:12 +0000 (07:03 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 24 Feb 2017 07:03:12 +0000 (07:03 +0000)
commit22b8ada7b5e0a1ef58b21cf8e481e0c2b28ce94e
treea0ded7be1951110cce2ef051cec7740f1c439c0e
parent0d85c7bb5a4c398863848ecdf44a0c9f1778da06
opus_pvq: improve PVQ search for low Ks

Since the probelm mentioned only happened when the phase was negative
(e.g. the sum had to be decreased), only discarding dimensions with a
zero pulse in that case restored the search's previously low distortion
at low Ks when the phase is never negative.

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