nvenc: Add default value for AVCodecContext::refs

Multimedia / Libav - Srinath K R [nvidia.com] - 10 June 2017 11:30 EDT

AVCodecContext::refs is used to control the DPB size to be used by the encoder. The default value for AVCodecContext::refs as set in libavcodec/options_table.h is 1.

This patch sets AVCodecContext::refs to 0 for h264_nvenc and hevc_nvenc in order to let the driver take the decision of the correct DPB size to use in all cases.

98ea980 nvenc: Add default value for AVCodecContext::refs
libavcodec/nvenc_h264.c | 1 +
libavcodec/nvenc_hevc.c | 1 +
2 files changed, 2 insertions(+)

Upstream: git.libav.org


  • Share