Commit 44b5f76e authored by Scott LaVarnway's avatar Scott LaVarnway Committed by Gerrit Code Review
Browse files

Merge "Fix issue 374: eob read incorrectly"

parents 7ca6c917 d497ec68
......@@ -479,7 +479,7 @@ static void check_reset_2nd_coeffs(MACROBLOCKD *x, int type,
if(bd->dequant[0]>=35 && bd->dequant[1]>=35)
return;
for(i=0;i<bd->eob;i++)
for(i=0;i<(*bd->eob);i++)
{
int coef = bd->dqcoeff[vp8_default_zig_zag1d[i]];
sum+= (coef>=0)?coef:-coef;
......@@ -496,14 +496,14 @@ static void check_reset_2nd_coeffs(MACROBLOCKD *x, int type,
**************************************************************************/
if(sum < 35)
{
for(i=0;i<bd->eob;i++)
for(i=0;i<(*bd->eob);i++)
{
int rc = vp8_default_zig_zag1d[i];
bd->qcoeff[rc]=0;
bd->dqcoeff[rc]=0;
}
bd->eob = 0;
*a = *l = (bd->eob != !type);
*bd->eob = 0;
*a = *l = (*bd->eob != !type);
}
}
......
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