[FFmpeg-devel] [PATCH] avcodec/nvenc: remove useless context pop
leozhang
nowerzt at gmail.com
Wed Sep 8 14:36:55 EEST 2021
Signed-off-by: leozhang <nowerzt at gmail.com>
---
libavcodec/nvenc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index ae25afd7f8..fdf06d6102 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -607,9 +607,6 @@ static av_cold int nvenc_check_device(AVCodecContext *avctx, int idx)
ctx->cu_context = ctx->cu_context_internal;
ctx->cu_stream = NULL;
- if ((ret = nvenc_pop_context(avctx)) < 0)
- goto fail2;
-
if ((ret = nvenc_open_session(avctx)) < 0)
goto fail2;
--
2.28.0.windows.1
More information about the ffmpeg-devel
mailing list