[x264-devel] [Git][videolan/x264][master] Fix VBV overflow check for B-frames

Anton Mitrofanov gitlab at videolan.org
Mon Feb 8 20:53:08 UTC 2021



Anton Mitrofanov pushed to branch master at VideoLAN / x264


Commits:
a7e2c6ab by Anton Mitrofanov at 2021-02-01T22:32:37+03:00
Fix VBV overflow check for B-frames

- - - - -


1 changed file:

- encoder/ratecontrol.c


Changes:

=====================================
encoder/ratecontrol.c
=====================================
@@ -2350,7 +2350,10 @@ static double clip_qscale( x264_t *h, int pict_type, double q )
                 bframe_cpb_duration += h->fenc->f_planned_cpb_duration[i];
 
             if( bbits * nb > bframe_cpb_duration * rcc->vbv_max_rate )
+            {
                 nb = 0;
+                bframe_cpb_duration = 0;
+            }
             pbbits += nb * bbits;
 
             minigop_cpb_duration = bframe_cpb_duration + fenc_cpb_duration;



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

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




More information about the x264-devel mailing list