mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
sonicenc: limit quant so that golomb codes are less than 32 bits long
before they could become 33 bits Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
efac6f7472
commit
512beea529
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user