Browse Source

avcodec/cuviddec: Remove unnecessary stream synchronisation

We're also doing a sync here after copying the frame to be passed
on down the pipleine. And it is also unnecessary.

I was able to demonstrate a 33% speedup removing the sync from
an example transcode pipeline.
tags/n4.2
Philip Langdale 6 years ago
parent
commit
5d90d1e36e
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavcodec/cuviddec.c

+ 0
- 4
libavcodec/cuviddec.c View File

@@ -553,10 +553,6 @@ static int cuvid_output_frame(AVCodecContext *avctx, AVFrame *frame)

offset += height;
}

ret = CHECK_CU(ctx->cudl->cuStreamSynchronize(device_hwctx->stream));
if (ret < 0)
goto error;
} else if (avctx->pix_fmt == AV_PIX_FMT_NV12 ||
avctx->pix_fmt == AV_PIX_FMT_P010 ||
avctx->pix_fmt == AV_PIX_FMT_P016 ||


Loading…
Cancel
Save