summaryrefslogtreecommitdiff
path: root/libavfilter/vf_thumbnail_cuda.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-05 22:36:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-10-07 16:41:21 +0200
commit37cb26bf790c5e20868c099647a1c6e49d58d08a (patch)
tree4fa3f5b4b2b510c23258eb44467363f2b04de6bb /libavfilter/vf_thumbnail_cuda.c
parent06045f4b1da1cbfa3446beef6797fb983a7dada5 (diff)
downloadffmpeg-37cb26bf790c5e20868c099647a1c6e49d58d08a.tar.gz
avfilter/vf_thumbnail_cuda: Reindent after the previous commit
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavfilter/vf_thumbnail_cuda.c')
-rw-r--r--libavfilter/vf_thumbnail_cuda.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c
index 7c86203227..c8dd905123 100644
--- a/libavfilter/vf_thumbnail_cuda.c
+++ b/libavfilter/vf_thumbnail_cuda.c
@@ -304,27 +304,26 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
static av_cold void uninit(AVFilterContext *ctx)
{
- int i;
ThumbnailCudaContext *s = ctx->priv;
if (s->hwctx) {
- CudaFunctions *cu = s->hwctx->internal->cuda_dl;
+ CudaFunctions *cu = s->hwctx->internal->cuda_dl;
- if (s->data) {
- CHECK_CU(cu->cuMemFree(s->data));
- s->data = 0;
- }
+ if (s->data) {
+ CHECK_CU(cu->cuMemFree(s->data));
+ s->data = 0;
+ }
- if (s->cu_module) {
- CHECK_CU(cu->cuModuleUnload(s->cu_module));
- s->cu_module = NULL;
- }
+ if (s->cu_module) {
+ CHECK_CU(cu->cuModuleUnload(s->cu_module));
+ s->cu_module = NULL;
+ }
}
if (s->frames) {
- for (i = 0; i < s->n_frames && s->frames[i].buf; i++)
- av_frame_free(&s->frames[i].buf);
- av_freep(&s->frames);
+ for (int i = 0; i < s->n_frames && s->frames[i].buf; i++)
+ av_frame_free(&s->frames[i].buf);
+ av_freep(&s->frames);
}
}