summaryrefslogtreecommitdiff
path: root/vp8/decoder/dequantize.c
diff options
context:
space:
mode:
authorTimothy B. Terriberry <tterribe@xiph.org>2010-10-21 17:04:30 -0700
committerTimothy B. Terriberry <tterribe@xiph.org>2010-10-21 17:04:30 -0700
commit8f75ea6b5c0a72c233d1ff9a75e16e6fe43fda77 (patch)
tree476d56cccf6f61b32f3e1db2d5cf7fddd309d625 /vp8/decoder/dequantize.c
parent45e64941778058312d72711dbfcf039bb4ba5171 (diff)
downloadlibvpx-8f75ea6b5c0a72c233d1ff9a75e16e6fe43fda77.tar
libvpx-8f75ea6b5c0a72c233d1ff9a75e16e6fe43fda77.tar.gz
libvpx-8f75ea6b5c0a72c233d1ff9a75e16e6fe43fda77.tar.bz2
libvpx-8f75ea6b5c0a72c233d1ff9a75e16e6fe43fda77.zip
Convert [4][4] matrices to [16] arrays.
Most of the code that actually uses these matrices indexes them as if they were a single contiguous array, and coverity produces reports about the resulting accesses that overflow the static bounds of the first row. This is perfectly legal in C, but converting them to actual [16] arrays should eliminate the report, and removes a good deal of extraneous indexing and address operators from the code. Change-Id: Ibda479e2232b3e51f9edf3b355b8640520fdbf23
Diffstat (limited to 'vp8/decoder/dequantize.c')
-rw-r--r--vp8/decoder/dequantize.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp8/decoder/dequantize.c b/vp8/decoder/dequantize.c
index 8cfa2a32e..f5d576ac7 100644
--- a/vp8/decoder/dequantize.c
+++ b/vp8/decoder/dequantize.c
@@ -24,7 +24,7 @@ void vp8_dequantize_b_c(BLOCKD *d)
int i;
short *DQ = d->dqcoeff;
short *Q = d->qcoeff;
- short *DQC = &d->dequant[0][0];
+ short *DQC = d->dequant;
for (i = 0; i < 16; i++)
{