[x264-devel] [Git][videolan/x264][master] Fix CAVLC encoding

Anton Mitrofanov gitlab at videolan.org
Sun Jan 24 14:00:19 UTC 2021



Anton Mitrofanov pushed to branch master at VideoLAN / x264


Commits:
e7866495 by Anton Mitrofanov at 2021-01-24T14:57:17+01:00
Fix CAVLC encoding

This bug mainly occurred when encoding with high bitrate (low QP).
It did not occur when encoding in baseline or main profile.

- - - - -


1 changed file:

- encoder/cavlc.c


Changes:

=====================================
encoder/cavlc.c
=====================================
@@ -91,7 +91,7 @@ static inline int cavlc_block_residual_escape( x264_t *h, int i_suffix_length, i
         {
             if( h->sps->i_profile_idc >= PROFILE_HIGH )
             {
-                while( i_level_code > 1<<(i_level_prefix-3) )
+                while( i_level_code >= 1<<(i_level_prefix-3) )
                 {
                     i_level_code -= 1<<(i_level_prefix-3);
                     i_level_prefix++;



View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/e78664956807fed2cfbb6aab71bbe2be5609e1e8

-- 
View it on GitLab: https://code.videolan.org/videolan/x264/-/commit/e78664956807fed2cfbb6aab71bbe2be5609e1e8
You're receiving this email because of your account on code.videolan.org.




More information about the x264-devel mailing list