[FFmpeg-cvslog] r21430 - trunk/libavcodec/h264_cavlc.c
michael
subversion
Sun Jan 24 19:18:08 CET 2010
Author: michael
Date: Sun Jan 24 19:18:08 2010
New Revision: 21430
Log:
Simplify suffix_length computation, same speed.
Modified:
trunk/libavcodec/h264_cavlc.c
Modified: trunk/libavcodec/h264_cavlc.c
==============================================================================
--- trunk/libavcodec/h264_cavlc.c Sun Jan 24 19:18:03 2010 (r21429)
+++ trunk/libavcodec/h264_cavlc.c Sun Jan 24 19:18:08 2010 (r21430)
@@ -443,9 +443,7 @@ static int decode_residual(H264Context *
}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;
}
More information about the ffmpeg-cvslog
mailing list