mirror of https://git.ffmpeg.org/ffmpeg.git
pqindex=0 is forbidden
Originally committed as revision 11540 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9ccbc672aa
commit
95e3fdb846
|
@ -1065,6 +1065,7 @@ static int vc1_parse_frame_header(VC1Context *v, GetBitContext* gb)
|
||||||
|
|
||||||
/* Quantizer stuff */
|
/* Quantizer stuff */
|
||||||
pqindex = get_bits(gb, 5);
|
pqindex = get_bits(gb, 5);
|
||||||
|
if(!pqindex) return -1;
|
||||||
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
|
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
|
||||||
v->pq = ff_vc1_pquant_table[0][pqindex];
|
v->pq = ff_vc1_pquant_table[0][pqindex];
|
||||||
else
|
else
|
||||||
|
@ -1301,6 +1302,7 @@ static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pqindex = get_bits(gb, 5);
|
pqindex = get_bits(gb, 5);
|
||||||
|
if(!pqindex) return -1;
|
||||||
v->pqindex = pqindex;
|
v->pqindex = pqindex;
|
||||||
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
|
if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
|
||||||
v->pq = ff_vc1_pquant_table[0][pqindex];
|
v->pq = ff_vc1_pquant_table[0][pqindex];
|
||||||
|
|
Loading…
Reference in New Issue