From: Zhao Zhili <zhiliz...@tencent.com> --- libavcodec/cuviddec.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/libavcodec/cuviddec.c b/libavcodec/cuviddec.c index 2f6bbdc7d8..3e29cde83b 100644 --- a/libavcodec/cuviddec.c +++ b/libavcodec/cuviddec.c @@ -662,15 +662,15 @@ static av_cold int cuvid_decode_end(AVCodecContext *avctx) av_fifo_freep2(&ctx->frame_queue); if (cuda_ctx) { - ctx->cudl->cuCtxPushCurrent(cuda_ctx); + ctx->cudl->cuCtxPushCurrent(cuda_ctx); - if (ctx->cuparser) - ctx->cvdl->cuvidDestroyVideoParser(ctx->cuparser); + if (ctx->cuparser) + ctx->cvdl->cuvidDestroyVideoParser(ctx->cuparser); - if (ctx->cudecoder) - ctx->cvdl->cuvidDestroyDecoder(ctx->cudecoder); + if (ctx->cudecoder) + ctx->cvdl->cuvidDestroyDecoder(ctx->cudecoder); - ctx->cudl->cuCtxPopCurrent(&dummy); + ctx->cudl->cuCtxPopCurrent(&dummy); } ctx->cudl = NULL; -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".