ref: b3ade15a268ffdd4eea7fcbb2c0ecaca51e64294
parent: ae63ce248afb20d2463449e617cfc5e626a5d63d
author: Adrian Grange <agrange@google.com>
date: Thu Dec 15 07:27:38 EST 2011
Fixed stride bug in segmentation code mode_info_context is padded with an additional column of data, so mode_info_stride should be used to move between rows rather than mb_cols. Change-Id: I598559a2cd9df1c486d64aaeccf76b76a7ecf21c
--- a/vp8/encoder/segmentation.c
+++ b/vp8/encoder/segmentation.c
@@ -237,7 +237,7 @@
if (mb_row != 0)
{
pred_context +=
- (xd->mode_info_context-cm->mb_cols)->
+ (xd->mode_info_context-cm->mode_info_stride)->
mbmi.seg_id_predicted;
}