mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
switch back to (amvd>2)+(amvd>32), its 5 cpu cycles faster now.
Originally committed as revision 22032 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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 ) {
|
static int decode_cabac_mb_mvd( H264Context *h, int ctxbase, int amvd ) {
|
||||||
int mvd;
|
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;
|
return 0;
|
||||||
|
|
||||||
mvd= 1;
|
mvd= 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user