summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2015-04-01 09:46:50 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-01 11:55:26 +0200
commitb63c9a999047567abb50871e361e1e73ed8c7995 (patch)
tree5713b81c82053ef42e2c9c6fad71593184e70e6d /libavcodec/nvenc.c
parent3c912391dd137f348bd2c4516ae66182748224f9 (diff)
avcodec/nvenc: Fix typoed nv_status checks
Thanks to Wyatt Aaron for pointing this out Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 78b52530a0..b015f881b8 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;