opus_pvq: prevent division by 0
authorRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 24 Feb 2017 19:13:44 +0000 (19:13 +0000)
committerRostislav Pehlivanov <atomnuker@gmail.com>
Fri, 24 Feb 2017 19:14:55 +0000 (19:14 +0000)
commit70259737cbad1136d942fa0cca5d55be1ca37e0a
treefee4df84ba980c8a873430eee88a4caed8123b32
parente01c32f260fa66fc80d286527a02cce7ca940c00
opus_pvq: prevent division by 0

res was 0 and divided K which made it infinity which caused K to
overflow.

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