Commit 370011c6 authored by michael's avatar michael

switch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22032 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 40340a95
......@@ -912,7 +912,7 @@ 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 mvd;
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+FFMIN(((amvd+28)*17)>>9,2)]))
if(!get_cabac(&h->cabac, &h->cabac_state[ctxbase+(amvd>2)+(amvd>32)]))
return 0;
mvd= 1;
......
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