mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Simplify decode_cabac_mb_intra4x4_pred_mode().
same speed Originally committed as revision 21839 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f4060611e9
commit
cf55f59d5e
@ -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 += 2 * get_cabac( &h->cabac, &h->cabac_state[69] );
|
||||||
mode += 4 * get_cabac( &h->cabac, &h->cabac_state[69] );
|
mode += 4 * get_cabac( &h->cabac, &h->cabac_state[69] );
|
||||||
|
|
||||||
if( mode >= pred_mode )
|
return mode + ( mode >= pred_mode );
|
||||||
return mode + 1;
|
|
||||||
else
|
|
||||||
return mode;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int decode_cabac_mb_chroma_pre_mode( H264Context *h) {
|
static int decode_cabac_mb_chroma_pre_mode( H264Context *h) {
|
||||||
|
Loading…
Reference in New Issue
Block a user