From 296b39dd863ea90a12d8a52848d1135e387a28f3 Mon Sep 17 00:00:00 2001 From: Jason Garrett-Glaser Date: Tue, 21 Oct 2008 17:10:46 -0700 Subject: [PATCH] Fix possible crash in trellis at very low QPs --- encoder/rdo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/rdo.c b/encoder/rdo.c index dbdcbe8f..296a3f38 100644 --- a/encoder/rdo.c +++ b/encoder/rdo.c @@ -530,7 +530,7 @@ static ALWAYS_INLINE void quant_trellis_cabac( x264_t *h, int16_t *dct, f8_bits += cabac_prefix_size[i_prefix][*ctx]; *ctx = cabac_prefix_transition[i_prefix][*ctx]; if( abs_level >= 15 ) - f8_bits += bs_size_ue( abs_level - 15 ) << CABAC_SIZE_BITS; + f8_bits += bs_size_ue_big( abs_level - 15 ) << CABAC_SIZE_BITS; node_ctx = coeff_abs_level_transition[1][node_ctx]; } else -- 2.47.3