Commit 96276f97 authored by Deb Mukherjee's avatar Deb Mukherjee
Browse files

A fix for crashes when #macroblock rows is odd.

Change-Id: If9fc2df4051ccfb8d804dae9d1be08d12d0f81ce
parent 13d69d40
...@@ -1064,7 +1064,7 @@ static void encode_sb(VP8_COMP *cpi, ...@@ -1064,7 +1064,7 @@ static void encode_sb(VP8_COMP *cpi,
(*tp)->Token = EOSB_TOKEN; (*tp)->Token = EOSB_TOKEN;
(*tp)++; (*tp)++;
cpi->tplist[mb_row].stop = *tp; if (mb_row < cm->mb_rows) cpi->tplist[mb_row].stop = *tp;
break; break;
} }
#endif #endif
...@@ -1088,7 +1088,7 @@ static void encode_sb(VP8_COMP *cpi, ...@@ -1088,7 +1088,7 @@ static void encode_sb(VP8_COMP *cpi,
#endif #endif
(*tp)->Token = EOSB_TOKEN; (*tp)->Token = EOSB_TOKEN;
(*tp)++; (*tp)++;
cpi->tplist[mb_row].stop = *tp; if (mb_row < cm->mb_rows) cpi->tplist[mb_row].stop = *tp;
} }
// debug output // debug output
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment