Commit 915512c5 authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Disable optimize when optimize is set to 0

BUG=aomedia:1036

Change-Id: I8444658957c6e19f0525e21c3918000a4097a729
parent f559a47c
......@@ -436,8 +436,8 @@ int av1_optimize_b(const AV1_COMMON *cm, MACROBLOCK *mb, int plane, int blk_row,
struct macroblock_plane *const p = &mb->plane[plane];
const int eob = p->eobs[block];
assert((mb->qindex == 0) ^ (xd->lossless[xd->mi[0]->mbmi.segment_id] == 0));
if (eob == 0) return eob;
if (xd->lossless[xd->mi[0]->mbmi.segment_id]) return eob;
if (eob == 0 || !mb->optimize || xd->lossless[xd->mi[0]->mbmi.segment_id])
return eob;
#if !CONFIG_LV_MAP
(void)plane_bsize;
......
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