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
Simplify suffix_length computation, same speed.
Originally committed as revision 21430 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer
16 years ago
parent
725b3da981
commit
eeb1e92feb
1 changed files
with
1 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-3
libavcodec/h264_cavlc.c
+ 1
- 3
libavcodec/h264_cavlc.c
View File
@@ -443,9 +443,7 @@ static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, in
}else{
level_code += ((level_code>>31)|1) & -(trailing_ones < 3);
suffix_length = 1;
if(level_code + 3U > 6U)
suffix_length++;
suffix_length = 1 + (level_code + 3U > 6U);
level[trailing_ones]= level_code;
}
Write
Preview
Loading…
Cancel
Save