Commit 2383f1fa authored by michael's avatar michael

Simplify ctx calculation in decode_cabac_mb_dqp()

no speed change


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16231 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 69237145
......@@ -4955,12 +4955,9 @@ static int decode_cabac_mb_cbp_chroma( H264Context *h) {
return 1 + get_cabac_noinline( &h->cabac, &h->cabac_state[77 + ctx] );
}
static int decode_cabac_mb_dqp( H264Context *h) {
int ctx = 0;
int ctx= h->last_qscale_diff != 0;
int val = 0;
if( h->last_qscale_diff != 0 )
ctx++;
while( get_cabac_noinline( &h->cabac, &h->cabac_state[60 + ctx] ) ) {
if( ctx < 2 )
ctx = 2;
......
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