Commit 98ea9806 authored by Srinath K R's avatar Srinath K R Committed by Luca Barbato

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: 's avatarSrinath K R <skr@nvidia.com>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent f9e7a2f9
...@@ -109,6 +109,7 @@ static const AVCodecDefault defaults[] = { ...@@ -109,6 +109,7 @@ static const AVCodecDefault defaults[] = {
{ "qdiff", "-1" }, { "qdiff", "-1" },
{ "qblur", "-1" }, { "qblur", "-1" },
{ "qcomp", "-1" }, { "qcomp", "-1" },
{ "refs", "0" },
{ NULL }, { NULL },
}; };
......
...@@ -107,6 +107,7 @@ static const AVCodecDefault defaults[] = { ...@@ -107,6 +107,7 @@ static const AVCodecDefault defaults[] = {
{ "qdiff", "-1" }, { "qdiff", "-1" },
{ "qblur", "-1" }, { "qblur", "-1" },
{ "qcomp", "-1" }, { "qcomp", "-1" },
{ "refs", "0" },
{ NULL }, { NULL },
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment