Commit 0f798491 authored by michael's avatar michael

Get rid of a local variable, 10 cpu cycles faster.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21888 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent baadc5aa
......@@ -914,17 +914,16 @@ static int decode_cabac_mb_mvd( H264Context *h, int list, int n, int l ) {
h->mvd_cache[list][scan8[n] - 8][l];
int ctxbase = (l == 0) ? 40 : 47;
int mvd;
int ctx = (amvd>2) + (amvd>32);
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+ctx]))
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2) + (amvd>32)]))
return 0;
mvd= 1;
ctx= 3;
while( mvd < 9 && get_cabac( &h->cabac, &h->cabac_state[ctxbase+ctx] ) ) {
ctxbase+= 3;
while( mvd < 9 && get_cabac( &h->cabac, &h->cabac_state[ctxbase] ) ) {
if( mvd < 4 )
ctxbase++;
mvd++;
if( ctx < 6 )
ctx++;
}
if( mvd >= 9 ) {
......
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