aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2017-02-24 07:06:59 +0000
committerRostislav Pehlivanov <atomnuker@gmail.com>2017-02-24 07:06:59 +0000
commitf19442c069929727b19c948619488370d279e177 (patch)
treead9578cd419f856ef7f59c11a203c4526ab58014 /libavcodec
parent22b8ada7b5e0a1ef58b21cf8e481e0c2b28ce94e (diff)
downloadffmpeg-f19442c069929727b19c948619488370d279e177.tar.gz
opus_pvq: remove unneeded assert
Since the PVQ search has been well fuzzed and is guaranteed to never break SUM(abs(y[])) == K, the assert is no longer needed. Also the assert only prevented coding the wrong vector index but didn't prevent crashes during searching for it, which made the assert rather informational than practical. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/opus_pvq.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/opus_pvq.c b/libavcodec/opus_pvq.c
index 0d3536718d..706e239422 100644
--- a/libavcodec/opus_pvq.c
+++ b/libavcodec/opus_pvq.c
@@ -285,7 +285,6 @@ static inline uint32_t celt_icwrsi(uint32_t N, uint32_t K, const int *y)
idx += CELT_PVQ_U(N - i, sum) + (y[i] < 0)*i_s;
sum += FFABS(y[i]);
}
- av_assert0(sum == K);
return idx;
}