Skip to content

Commit

Permalink
libavcenc: model CBR-NLDRC as CBR mode with out frame drops
Browse files Browse the repository at this point in the history
In frame drop mode, the stream generated is non-compliant.
For now disable frame drop mode.
  • Loading branch information
ram-mohan committed Sep 27, 2023
1 parent c95744a commit 573c8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoder/ih264e_rate_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 573c8a6

Please sign in to comment.