[FFmpeg-devel] [PATCH] avcodec/nvenc: Fix typoed nv_status checks
timo at rothenpieler.org
timo at rothenpieler.org
Wed Apr 1 09:46:50 CEST 2015
From: Timo Rothenpieler <timo at rothenpieler.org>
Thanks to Wyatt Aaron for pointing this out
---
libavcodec/nvenc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 78b5253..b015f88 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -822,7 +822,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
}
nv_status = p_nvenc->nvEncCreateInputBuffer(ctx->nvencoder, &allocSurf);
- if (nv_status = NV_ENC_SUCCESS){
+ if (nv_status != NV_ENC_SUCCESS) {
av_log(avctx, AV_LOG_FATAL, "CreateInputBuffer failed\n");
res = AVERROR_EXTERNAL;
goto error;
@@ -840,7 +840,7 @@ static av_cold int nvenc_encode_init(AVCodecContext *avctx)
allocOut.memoryHeap = NV_ENC_MEMORY_HEAP_SYSMEM_CACHED;
nv_status = p_nvenc->nvEncCreateBitstreamBuffer(ctx->nvencoder, &allocOut);
- if (nv_status = NV_ENC_SUCCESS) {
+ if (nv_status != NV_ENC_SUCCESS) {
av_log(avctx, AV_LOG_FATAL, "CreateBitstreamBuffer failed\n");
ctx->output_surfaces[surfaceCount++].output_surface = NULL;
res = AVERROR_EXTERNAL;
--
2.3.4
More information about the ffmpeg-devel
mailing list