Fixed bug to use mode_info_stride rather than mb_cols
authorAdrian Grange <agrange@google.com>
Thu, 15 Dec 2011 18:00:46 +0000 (10:00 -0800)
committerAdrian Grange <agrange@google.com>
Thu, 15 Dec 2011 18:00:46 +0000 (10:00 -0800)
commitae63ce248afb20d2463449e617cfc5e626a5d63d
tree8e1ee458ee31ad4ed537c6237973c3eac0124090
parentae9023a3c915a95e13e96721888b174d68c83553
Fixed bug to use mode_info_stride rather than mb_cols

Both encoder & decoder were using mb_cols to
offset from one row of MODE_INFO structures to the next
when they should have been using mode_info_stride.

Fixing this in both encoder and decoder gives around
a 3KB size saving and 0.025dB PSNR improvement on the one
720P clip I tried.

(Also removed "index" which was being updated but not used)

Change-Id: I413bea802b142886bfcf8d8aa7f5a2f0c524fd4b
vp8/decoder/decodemv.c
vp8/encoder/bitstream.c