Mercurial > libavcodec.hg
changeset 10995:5352afcd6748 libavcodec
Optimize suffix_length computation, 1 cpu cycle speedup.
author | michael |
---|---|
date | Sun, 24 Jan 2010 18:23:46 +0000 |
parents | 2179ea01df62 |
children | 26f9c146ef2a |
files | h264_cavlc.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/h264_cavlc.c Sun Jan 24 18:18:08 2010 +0000 +++ b/h264_cavlc.c Sun Jan 24 18:23:46 2010 +0000 @@ -470,9 +470,7 @@ level_code= (((2+level_code)>>1) ^ mask) - mask; } level[i]= level_code; - - if(suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length]) - suffix_length++; + suffix_length+= suffix_limit[suffix_length] + level_code > 2U*suffix_limit[suffix_length]; } }