Browse Source

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 <skr@nvidia.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
tags/n3.4
Srinath K R Timo Rothenpieler 8 years ago
parent
commit
d8da329cc3
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      libavcodec/nvenc_h264.c
  2. +1
    -0
      libavcodec/nvenc_hevc.c

+ 1
- 0
libavcodec/nvenc_h264.c View File

@@ -131,6 +131,7 @@ static const AVCodecDefault defaults[] = {
{ "qcomp", "-1" },
{ "g", "250" },
{ "bf", "0" },
{ "refs", "0" },
{ NULL },
};



+ 1
- 0
libavcodec/nvenc_hevc.c View File

@@ -128,6 +128,7 @@ static const AVCodecDefault defaults[] = {
{ "qcomp", "-1" },
{ "g", "250" },
{ "bf", "0" },
{ "refs", "0" },
{ NULL },
};



Loading…
Cancel
Save