summaryrefslogtreecommitdiff
path: root/vp8/encoder/encodeframe.c
diff options
context:
space:
mode:
Diffstat (limited to 'vp8/encoder/encodeframe.c')
-rw-r--r--vp8/encoder/encodeframe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c
index 8a2c56175..0a25f8e41 100644
--- a/vp8/encoder/encodeframe.c
+++ b/vp8/encoder/encodeframe.c
@@ -1064,7 +1064,7 @@ static void encode_sb(VP8_COMP *cpi,
(*tp)->Token = EOSB_TOKEN;
(*tp)++;
- cpi->tplist[mb_row].stop = *tp;
+ if (mb_row < cm->mb_rows) cpi->tplist[mb_row].stop = *tp;
break;
}
#endif
@@ -1088,7 +1088,7 @@ static void encode_sb(VP8_COMP *cpi,
#endif
(*tp)->Token = EOSB_TOKEN;
(*tp)++;
- cpi->tplist[mb_row].stop = *tp;
+ if (mb_row < cm->mb_rows) cpi->tplist[mb_row].stop = *tp;
}
// debug output