Browse Source

Simplify ctx calculation in decode_cabac_mb_dqp()

no speed change

Originally committed as revision 16231 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
7cfca0dfd8
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      libavcodec/h264.c

+ 1
- 4
libavcodec/h264.c View File

@@ -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;


Loading…
Cancel
Save