Changes between Version 1 and Version 2 of Ticket #6989, comment 15


Ignore:
Timestamp:
Mar 5, 2020, 3:33:05 AM (3 months ago)
Author:
Balling
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6989, comment 15

    v1 v2  
    1 Did you try
    2 
    3 {{{
    4 diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
    5 index b60da24301..9b97d02a67 100644
    6 --- a/libavcodec/nvdec.c
    7 +++ b/libavcodec/nvdec.c
    8 @@ -300,7 +300,7 @@ int ff_nvdec_decode_init(AVCodecContext *avctx)
    9      }
    10      chroma_444 = ctx->supports_444 && cuvid_chroma_format == cudaVideoChromaFormat_444;
    11  
    12 -    if (!avctx->hw_frames_ctx) {
    13 +    if (avctx->hw_frames_ctx) {
    14          ret = ff_decode_get_hw_frames_ctx(avctx, AV_HWDEVICE_TYPE_CUDA);
    15          if (ret < 0)
    16              return ret;
    17 }}}
    18 
     1Did you try to change AVCodecContext::hw_frames_ctx
    192before the latest commit? Or better (obviously) to set AVHWFramesContext::initial_pool_size to two in ff_nvdec_decode_init?