Commit 512beea5 authored by Michael Niedermayer's avatar Michael Niedermayer

sonicenc: limit quant so that golomb codes are less than 32 bits long

before they could become 33 bits
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent efac6f74
......@@ -724,8 +724,8 @@ static int sonic_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if (quant < 1)
quant = 1;
if (quant > 65535)
quant = 65535;
if (quant > 65534)
quant = 65534;
set_ue_golomb(&pb, quant);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment