This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Optimize level_code computation, 6cpu cycles speedup.
Originally committed as revision 21428 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer
15 years ago
parent
f1d2b5728c
commit
c78295ad1b
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/h264_cavlc.c
+ 1
- 1
libavcodec/h264_cavlc.c
View File
@@ -441,7 +441,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
mask= -(level_code&1);
level[trailing_ones]= (((2+level_code)>>1) ^ mask) - mask;
}else{
if(trailing_ones < 3)
level_code += (level_code>>31)|1;
level_code +=
(
(level_code>>31)|1
) & -(trailing_ones < 3)
;
suffix_length = 1;
if(level_code + 3U > 6U)
Write
Preview
Loading…
Cancel
Save