Commit 54c26be3 authored by michael's avatar michael

Simplify decode_cabac_mb_intra4x4_pred_mode().

same speed


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21839 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f866f55e
......@@ -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