ref: 28a93d6588ab1ea246bb3aee046ea8e46939de07
parent: dd217d3df1ec75ab77cb7597b5504f920892e360
parent: a554bd8dace6ab374c415f1f43ff5740ef1b3f4e
author: Hui Su <[email protected]>
date: Tue Jun 7 20:33:48 EDT 2016
Merge "Avoid a potential assertion fail in optimize_b()"
--- a/vp9/encoder/vp9_encodemb.c
+++ b/vp9/encoder/vp9_encodemb.c
@@ -913,7 +913,7 @@
pd->dequant, eob, scan_order->scan,
scan_order->iscan);
}
- if (args->ctx != NULL) {
+ if (args->ctx != NULL && !x->skip_recode) {
*a = *l = optimize_b(x, plane, block, tx_size, entropy_ctx) > 0;
}
if (!x->skip_encode && *eob)
@@ -929,7 +929,7 @@
pd->dequant, eob, scan_order->scan,
scan_order->iscan);
}
- if (args->ctx != NULL) {
+ if (args->ctx != NULL && !x->skip_recode) {
*a = *l = optimize_b(x, plane, block, tx_size, entropy_ctx) > 0;
}
if (!x->skip_encode && *eob)
@@ -945,7 +945,7 @@
pd->dequant, eob, scan_order->scan,
scan_order->iscan);
}
- if (args->ctx != NULL) {
+ if (args->ctx != NULL && !x->skip_recode) {
*a = *l = optimize_b(x, plane, block, tx_size, entropy_ctx) > 0;
}
if (!x->skip_encode && *eob)
@@ -964,7 +964,7 @@
pd->dequant, eob, scan_order->scan,
scan_order->iscan);
}
- if (args->ctx != NULL) {
+ if (args->ctx != NULL && !x->skip_recode) {
*a = *l = optimize_b(x, plane, block, tx_size, entropy_ctx) > 0;
}
if (!x->skip_encode && *eob) {