From 573c8a618474fd61b8dd6db884fb10632944a804 Mon Sep 17 00:00:00 2001 From: Ram Mohan M Date: Wed, 27 Sep 2023 22:16:19 +0530 Subject: [PATCH] libavcenc: model CBR-NLDRC as CBR mode with out frame drops In frame drop mode, the stream generated is non-compliant. For now disable frame drop mode. --- encoder/ih264e_rate_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encoder/ih264e_rate_control.c b/encoder/ih264e_rate_control.c index b81d9164..9e2a9988 100644 --- a/encoder/ih264e_rate_control.c +++ b/encoder/ih264e_rate_control.c @@ -595,8 +595,8 @@ WORD32 ih264e_rc_post_enc(void * ps_rate_control_api, /* Set post encode skip to zero */ pi4_is_post_encode_skip[0]= 0; - /* For NLDRC, get the buffer status for stuffing or skipping */ - if (irc_get_rc_type(ps_rate_control_api) == CBR_NLDRC) + /* For CBR with frame drops enable the below section. By default CBR_NLDRC is CBR with no frame drops */ + if (0 && irc_get_rc_type(ps_rate_control_api) == CBR_NLDRC) { WORD32 i4_get_num_bit_to_prevent_vbv_overflow; UWORD8 u1_enc_buf_overflow,u1_enc_buf_underflow;