Mercurial > libavcodec.hg
changeset 6150:49a4e4d78692 libavcodec
pqindex=0 is forbidden
author | kostya |
---|---|
date | Wed, 16 Jan 2008 17:07:34 +0000 |
parents | b1bd3188bdef |
children | 2af9eab80fad |
files | vc1.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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];