From: Zhao Zhili <[email protected]>
---
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
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".