From d8da329cc364b36dabbb3162f788f958d8b6ea46 Mon Sep 17 00:00:00 2001 From: Srinath K R Date: Thu, 1 Jun 2017 13:28:07 +0530 Subject: avcodec/nvenc: Add default value for AVCodecContext::refs 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. Signed-off-by: Srinath K R Signed-off-by: Timo Rothenpieler --- libavcodec/nvenc_hevc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/nvenc_hevc.c') diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c index 66db1457a5..81da9d222d 100644 --- a/libavcodec/nvenc_hevc.c +++ b/libavcodec/nvenc_hevc.c @@ -128,6 +128,7 @@ static const AVCodecDefault defaults[] = { { "qcomp", "-1" }, { "g", "250" }, { "bf", "0" }, + { "refs", "0" }, { NULL }, }; -- cgit v1.2.1