[FFmpeg-cvslog] r16232 - trunk/libavcodec/h264.c
michael
subversion
Fri Dec 19 03:00:33 CET 2008
Author: michael
Date: Fri Dec 19 03:00:33 2008
New Revision: 16232
Log:
Simplify ctx update in decode_cabac_mb_dqp().
no speed change
Modified:
trunk/libavcodec/h264.c
Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c (original)
+++ trunk/libavcodec/h264.c Fri Dec 19 03:00:33 2008
@@ -4959,10 +4959,7 @@ static int decode_cabac_mb_dqp( H264Cont
int val = 0;
while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
- if( ctx < 2 )
- ctx = 2;
- else
- ctx = 3;
+ ctx= 2+(ctx>>1);
val++;
if(val > 102) //prevent infinite loop
return INT_MIN;
More information about the ffmpeg-cvslog
mailing list