Message ID | 20210908112859.467-1-nowerzt@gmail.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel] avcodec/nvenc: remove useless context pop | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
andriy/make_ppc | success | Make finished |
andriy/make_fate_ppc | success | Make fate finished |
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;
Signed-off-by: leozhang <nowerzt@gmail.com> --- libavcodec/nvenc.c | 3 --- 1 file changed, 3 deletions(-)