Commit c6caaff6 authored by astrange's avatar astrange

Use get_cabac_bypass_sign instead of an if/else.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14054 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 31590223
......@@ -5549,11 +5549,9 @@ static av_always_inline void decode_cabac_residual_internal( H264Context *h, DCT
}
if( is_dc ) {
if( get_cabac_bypass( CC ) ) block[j] = -coeff_abs;
else block[j] = coeff_abs;
block[j] = get_cabac_bypass_sign( CC, -coeff_abs );
}else{
if( get_cabac_bypass( CC ) ) block[j] = (-coeff_abs * qmul[j] + 32) >> 6;
else block[j] = ( coeff_abs * qmul[j] + 32) >> 6;
block[j] = (get_cabac_bypass_sign( CC, -coeff_abs ) * qmul[j] + 32) >> 6;
}
}
}
......
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