Commit cf55f59d authored by Michael Niedermayer's avatar Michael Niedermayer

Simplify decode_cabac_mb_intra4x4_pred_mode().

same speed

Originally committed as revision 21839 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f4060611
......@@ -796,10 +796,7 @@ static int decode_cabac_mb_intra4x4_pred_mode( H264Context *h, int pred_mode ) {
mode += 2 * get_cabac( &h->cabac, &h->cabac_state[69] );
mode += 4 * get_cabac( &h->cabac, &h->cabac_state[69] );
if( mode >= pred_mode )
return mode + 1;
else
return mode;
return mode + ( mode >= pred_mode );
}
static int decode_cabac_mb_chroma_pre_mode( H264Context *h) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment