summaryrefslogtreecommitdiff
path: root/libavcodec/cuviddec.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-03-30 10:51:07 -0700
committerPhilip Langdale <philipl@overt.org>2019-03-30 10:51:07 -0700
commit5d90d1e36ef3abfa2843e54389d0ffd0fa7ca405 (patch)
tree1dd9d3bd4041bbb79081712411ff25293467a4fd /libavcodec/cuviddec.c
parentc0b6e4cb6d6d41dbf2684891ed9dd43d9ddfb804 (diff)
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.
Diffstat (limited to 'libavcodec/cuviddec.c')
-rw-r--r--libavcodec/cuviddec.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c
index 291bb93dbc..2aecb45768 100644
--- a/libavcodec/cuviddec.c
+++ b/libavcodec/cuviddec.c
@@ -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 ||