mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
avcodec/nvenc: fix indentation
This commit is contained in:
parent
23ed147e8f
commit
2e254bb897
@ -1564,21 +1564,21 @@ static int nvenc_find_free_reg_resource(AVCodecContext *avctx)
|
|||||||
|
|
||||||
if (ctx->nb_registered_frames == FF_ARRAY_ELEMS(ctx->registered_frames)) {
|
if (ctx->nb_registered_frames == FF_ARRAY_ELEMS(ctx->registered_frames)) {
|
||||||
for (first_round = 1; first_round >= 0; first_round--) {
|
for (first_round = 1; first_round >= 0; first_round--) {
|
||||||
for (i = 0; i < ctx->nb_registered_frames; i++) {
|
for (i = 0; i < ctx->nb_registered_frames; i++) {
|
||||||
if (!ctx->registered_frames[i].mapped) {
|
if (!ctx->registered_frames[i].mapped) {
|
||||||
if (ctx->registered_frames[i].regptr) {
|
if (ctx->registered_frames[i].regptr) {
|
||||||
if (first_round)
|
if (first_round)
|
||||||
continue;
|
continue;
|
||||||
nv_status = p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr);
|
nv_status = p_nvenc->nvEncUnregisterResource(ctx->nvencoder, ctx->registered_frames[i].regptr);
|
||||||
if (nv_status != NV_ENC_SUCCESS)
|
if (nv_status != NV_ENC_SUCCESS)
|
||||||
return nvenc_print_error(avctx, nv_status, "Failed unregistering unused input resource");
|
return nvenc_print_error(avctx, nv_status, "Failed unregistering unused input resource");
|
||||||
ctx->registered_frames[i].ptr = NULL;
|
ctx->registered_frames[i].ptr = NULL;
|
||||||
ctx->registered_frames[i].regptr = NULL;
|
ctx->registered_frames[i].regptr = NULL;
|
||||||
|
}
|
||||||
|
return i;
|
||||||
}
|
}
|
||||||
return i;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
return ctx->nb_registered_frames++;
|
return ctx->nb_registered_frames++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user