1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-09 14:14:39 +02:00

avfilter/vf_thumbnail_cuda: Reindent after the previous commit

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2021-10-05 22:36:24 +02:00
parent 06045f4b1d
commit 37cb26bf79

View File

@ -304,27 +304,26 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static av_cold void uninit(AVFilterContext *ctx) static av_cold void uninit(AVFilterContext *ctx)
{ {
int i;
ThumbnailCudaContext *s = ctx->priv; ThumbnailCudaContext *s = ctx->priv;
if (s->hwctx) { if (s->hwctx) {
CudaFunctions *cu = s->hwctx->internal->cuda_dl; CudaFunctions *cu = s->hwctx->internal->cuda_dl;
if (s->data) { if (s->data) {
CHECK_CU(cu->cuMemFree(s->data)); CHECK_CU(cu->cuMemFree(s->data));
s->data = 0; s->data = 0;
} }
if (s->cu_module) { if (s->cu_module) {
CHECK_CU(cu->cuModuleUnload(s->cu_module)); CHECK_CU(cu->cuModuleUnload(s->cu_module));
s->cu_module = NULL; s->cu_module = NULL;
} }
} }
if (s->frames) { if (s->frames) {
for (i = 0; i < s->n_frames && s->frames[i].buf; i++) for (int i = 0; i < s->n_frames && s->frames[i].buf; i++)
av_frame_free(&s->frames[i].buf); av_frame_free(&s->frames[i].buf);
av_freep(&s->frames); av_freep(&s->frames);
} }
} }