]> granicus.if.org Git - libvpx/commit
Added clamp of qindex to valid range
authorYaowu Xu <yaowu@google.com>
Sat, 22 Feb 2014 20:30:18 +0000 (12:30 -0800)
committerYaowu Xu <yaowu@google.com>
Sat, 22 Feb 2014 20:30:18 +0000 (12:30 -0800)
commite22b12e3040dca09d212da3bc3e92595449549be
treec168d0107c3027d2bcf0378a156dde043708dba9
parent4b3e44f91d2742319556a247647fb95d52b3c24c
Added clamp of qindex to valid range

The qindex for a segment was not clamped in ABSDATA mode, which may
cause invalid memory access if an ill-formed stream has a negative
value in ABSDATA mode. This commit added clamp to make sure qindex
for a segment always fall into valid range.

Change-Id: I0a74d00f4ef40aec7edaeca1d03c8645e23ab08c
vp9/common/vp9_quant_common.c