Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-03-30 18:50:44 +0300
committerPhilip Langdale <philipl@overt.org>2019-03-30 18:55:15 +0300
commitc0b6e4cb6d6d41dbf2684891ed9dd43d9ddfb804 (patch)
tree722e174b56314df720724395771b01488e0a888a /libavfilter/vf_yadif_cuda.c
parent5282cbae61ccf75dbfbeac5b963812aac90ec8cb (diff)
avfilter/vf_yadif_cuda: Remove unnecessary stream synchronisation
I put this call in by habit, rather than because there was any actual need. The filter is simply processing frames one after the other and has no need to synchronise. malakudi on the devtalk forums noticed a slowdown when using nvenc with temporal/spatial aq and that the slowdown went away if the sync call was removed. I also verified that in the basic encoding case there's an observable speedup. I also verified that we aren't doing unnecessary sync calls in any other filter.
Diffstat (limited to 'libavfilter/vf_yadif_cuda.c')
-rw-r--r--libavfilter/vf_yadif_cuda.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavfilter/vf_yadif_cuda.c b/libavfilter/vf_yadif_cuda.c
index 141dcb17f7..c9eb1a229d 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -180,8 +180,6 @@ static void filter(AVFilterContext *ctx, AVFrame *dst,
parity, tff);
}
- CHECK_CU(cu->cuStreamSynchronize(s->stream));
-
exit:
CHECK_CU(cu->cuCtxPopCurrent(&dummy));
return;