In case when any quantizer may occur, HALFPQ should be zero

Originally committed as revision 10499 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Kostya Shishkov 18 years ago
parent efd7428666
commit f7d2a43707
  1. 2
      libavcodec/vc1.c

@ -342,6 +342,8 @@ static int vop_dquant_decoding(VC1Context *v)
break; break;
case DQPROFILE_ALL_MBS: case DQPROFILE_ALL_MBS:
v->dqbilevel = get_bits1(gb); v->dqbilevel = get_bits1(gb);
if(!v->dqbilevel)
v->halfpq = 0;
default: break; //Forbidden ? default: break; //Forbidden ?
} }
if (v->dqbilevel || v->dqprofile != DQPROFILE_ALL_MBS) if (v->dqbilevel || v->dqprofile != DQPROFILE_ALL_MBS)

Loading…
Cancel
Save