Skip to content

Commit

Permalink
increase encoder buffers in h264encodernvcodec
Browse files Browse the repository at this point in the history
  • Loading branch information
kushaljain-apra committed May 30, 2024
1 parent 7877803 commit e4b4221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/src/H264EncoderNVCodecHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ class H264EncoderNVCodecHelper::Detail
{
NVENC_API_CALL(m_nvcodecResources->m_nvenc.nvEncInitializeEncoder(m_nvcodecResources->m_hEncoder, &m_initializeParams));

m_nEncoderBuffer = m_encodeConfig.frameIntervalP + m_encodeConfig.rcParams.lookaheadDepth + 20;
m_nEncoderBuffer = m_encodeConfig.frameIntervalP + m_encodeConfig.rcParams.lookaheadDepth + 30;
m_nvcodecResources->m_nFreeOutputBitstreams = m_nEncoderBuffer;

for (int i = 0; i < m_nEncoderBuffer; i++)
Expand Down

0 comments on commit e4b4221

Please sign in to comment.