diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2019-04-24 22:47:24 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2019-04-27 12:33:08 +0200 |
commit | 2e254bb897471b4a4db2b846947fc6c00faac3e6 (patch) | |
tree | 64a508a38704693ce087bcd4576691cad3d8b8a1 /libavcodec | |
parent | 23ed147e8fc2b6b51a88af66b40f99049e5fa0d8 (diff) | |
download | ffmpeg-2e254bb897471b4a4db2b846947fc6c00faac3e6.tar.gz |
avcodec/nvenc: fix indentation
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/nvenc.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index 626662f02c..3fe64bba8b 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -1564,21 +1564,21 @@ static int nvenc_find_free_reg_resource(AVCodecContext *avctx) if (ctx->nb_registered_frames == FF_ARRAY_ELEMS(ctx->registered_frames)) { for (first_round = 1; first_round >= 0; first_round--) { - for (i = 0; i < ctx->nb_registered_frames; i++) { - if (!ctx->registered_frames[i].mapped) { - if (ctx->registered_frames[i].regptr) { - if (first_round) - continue; - nv_status = p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr); - if (nv_status != NV_ENC_SUCCESS) - return nvenc_print_error(avctx, nv_status, "Failed unregistering unused input resource"); - ctx->registered_frames[i].ptr = NULL; - ctx->registered_frames[i].regptr = NULL; + for (i = 0; i < ctx->nb_registered_frames; i++) { + if (!ctx->registered_frames[i].mapped) { + if (ctx->registered_frames[i].regptr) { + if (first_round) + continue; + nv_status = p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr); + if (nv_status != NV_ENC_SUCCESS) + return nvenc_print_error(avctx, nv_status, "Failed unregistering unused input resource"); + ctx->registered_frames[i].ptr = NULL; + ctx->registered_frames[i].regptr = NULL; + } + return i; } - return i; } } - } } else { return ctx->nb_registered_frames++; } |