mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-11 21:24:01 +00:00
avcodec/nvenc: Fix typoed nv_status checks
Thanks to Wyatt Aaron for pointing this out Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3c912391dd
commit
b63c9a9990
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user