diff options
author | Ram Mohan M <ram.mohan@ittiam.com> | 2023-09-27 22:16:19 +0530 |
---|---|---|
committer | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2023-09-27 13:57:19 -0700 |
commit | 7c59eeb92090e22a46a53d9410475280fd5c86bf (patch) | |
tree | 677b48907d3682bd696a4bc14e2d033e12764441 | |
parent | 3fcf95935950ad3fc4bf37eee8fb6e4c77c62339 (diff) | |
download | libavc-7c59eeb92090e22a46a53d9410475280fd5c86bf.tar.gz |
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.
Bug: oss-fuzz-61202
Bug: oss-fuzz-59598
Test: ./avc_enc_fuzzer
Change-Id: Ifed950082ae2c6e70d6a7da4547b6ffeb44cf759
-rw-r--r-- | encoder/ih264e_rate_control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/encoder/ih264e_rate_control.c b/encoder/ih264e_rate_control.c index b81d916..f7c2eda 100644 --- a/encoder/ih264e_rate_control.c +++ b/encoder/ih264e_rate_control.c @@ -596,7 +596,9 @@ WORD32 ih264e_rc_post_enc(void * ps_rate_control_api, 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) + /* Default NLDRC to CBR with no frame drops. */ + /* FIX ME: In frame drop mode, the bitstream generated is non-compliant */ + 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; |