commit | 6bf4ec89cffcb48b7da7009f891d5357c9e0928e | [log] [tgz] |
---|---|---|
author | Hui Su <huisu@google.com> | Wed Mar 28 21:18:10 2018 -0700 |
committer | Hui Su <huisu@google.com> | Thu Mar 29 19:39:04 2018 +0000 |
tree | 7a7a4961fd3db75cfb61ab50819ffe0a783ad2ea | |
parent | b6fea18d93bc95b97a04f4e4ac6c2332ecb31e9e [diff] [blame] |
Make sure segment_id is no larger than last_active_segid BUG=aomedia:1663 Change-Id: I51c8cfdee75faa188fd7db90d09de4c622b4d023
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c index 06c9d4a..47250f3 100644 --- a/av1/encoder/bitstream.c +++ b/av1/encoder/bitstream.c
@@ -415,6 +415,7 @@ } int av1_neg_interleave(int x, int ref, int max) { + assert(x < max); const int diff = x - ref; if (!ref) return x; if (ref >= (max - 1)) return -x + max - 1;