Simplify decode_cabac_mb_ref() a little bit, 2 cpu cycles faster on
pentium dual. Originally committed as revision 16279 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
26695973c7
commit
ec3686e889
@ -4991,10 +4991,7 @@ static int decode_cabac_mb_ref( H264Context *h, int list, int n ) {
|
|||||||
|
|
||||||
while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) {
|
while( get_cabac( &h->cabac, &h->cabac_state[54+ctx] ) ) {
|
||||||
ref++;
|
ref++;
|
||||||
if( ctx < 4 )
|
ctx = (ctx>>2)+4;
|
||||||
ctx = 4;
|
|
||||||
else
|
|
||||||
ctx = 5;
|
|
||||||
if(ref >= 32 /*h->ref_list[list]*/){
|
if(ref >= 32 /*h->ref_list[list]*/){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user