Mercurial > libavcodec.hg
comparison h264.c @ 8438:89f7279e1eaa libavcodec
Simplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
pentium dual.
author | michael |
---|---|
date | Mon, 22 Dec 2008 17:14:13 +0000 |
parents | 94c16f1cd5cf |
children | 649ce1b30344 |
comparison
equal
deleted
inserted
replaced
8437:94c16f1cd5cf | 8438:89f7279e1eaa |
---|---|
4989 ctx += 2; | 4989 ctx += 2; |
4990 } | 4990 } |
4991 | 4991 |
4992 while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) { | 4992 while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) { |
4993 ref++; | 4993 ref++; |
4994 if( ctx < 4 ) | 4994 ctx = (ctx>>2)+4; |
4995 ctx = 4; | |
4996 else | |
4997 ctx = 5; | |
4998 if(ref >= 32 /*h->ref_list[list]*/){ | 4995 if(ref >= 32 /*h->ref_list[list]*/){ |
4999 return -1; | 4996 return -1; |
5000 } | 4997 } |
5001 } | 4998 } |
5002 return ref; | 4999 return ref; |