Mercurial > libavcodec.hg
diff vc1.c @ 6150:49a4e4d78692 libavcodec
pqindex=0 is forbidden
author | kostya |
---|---|
date | Wed, 16 Jan 2008 17:07:34 +0000 |
parents | ddf5d7fae101 |
children | 1d735690e172 |
line wrap: on
line diff
--- a/vc1.c Wed Jan 16 12:42:52 2008 +0000 +++ b/vc1.c Wed Jan 16 17:07:34 2008 +0000 @@ -1065,6 +1065,7 @@ /* Quantizer stuff */ pqindex = get_bits(gb, 5); + if(!pqindex) return -1; if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v->pq = ff_vc1_pquant_table[0][pqindex]; else @@ -1301,6 +1302,7 @@ } } pqindex = get_bits(gb, 5); + if(!pqindex) return -1; v->pqindex = pqindex; if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v->pq = ff_vc1_pquant_table[0][pqindex];