[FFmpeg-devel] [PATCH] avcodec/nvenc: Add default value for AVCodecContext::refs

Timo Rothenpieler timo at rothenpieler.org
Thu Jun 1 16:51:19 EEST 2017


Am 01.06.2017 um 09:58 schrieb Srinath K R:> 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 at nvidia.com>

applied locally, will push with my next batch of patches.

Is this supposed to fix the issue with -bf >0?
For me, even with this applied, I still get the same old error:
[h264_nvenc @ 0x257c400] EncodePicture failed!: no encode device (1)

Using nvidia-drivers 381.22

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170601/5b69e1aa/attachment.sig>


More information about the ffmpeg-devel mailing list