Commit 756ebaae authored by michael's avatar michael

Optimize (amvd>2)+(amvd>32), about 1 cpu cycles faster.

patch by Zhou Zongyi @ zhouzy () os punkt pku dot edu speck cn


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22084 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ec6e43e
......@@ -912,7 +912,8 @@ static int decode_cabac_mb_ref( H264Context *h, int list, int n ) {
static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd, int *mvda) {
int mvd;
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])){
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+((amvd-3)>>(INT_BIT-1))+((amvd-33)>>(INT_BIT-1))+2])){
// if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)])){
*mvda= 0;
return 0;
}
......
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