[x264-devel] commit: Fix possible crash in trellis at very low QPs ( Jason Garrett-Glaser )

git version control git at videolan.org
Fri Oct 31 16:57:50 CET 2008


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Tue Oct 21 17:10:46 2008 -0700| [296b39dd863ea90a12d8a52848d1135e387a28f3] | committer: Jason Garrett-Glaser 

Fix possible crash in trellis at very low QPs

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=296b39dd863ea90a12d8a52848d1135e387a28f3
---

 encoder/rdo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/encoder/rdo.c b/encoder/rdo.c
index dbdcbe8..296a3f3 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



More information about the x264-devel mailing list