1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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 <skr@nvidia.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Srinath K R 2017-06-08 14:43:54 +05:30 committed by Luca Barbato
parent f9e7a2f95a
commit 98ea98069b
2 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ static const AVCodecDefault defaults[] = {
{ "qdiff", "-1" },
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "refs", "0" },
{ NULL },
};

View File

@ -107,6 +107,7 @@ static const AVCodecDefault defaults[] = {
{ "qdiff", "-1" },
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "refs", "0" },
{ NULL },
};