[PR] avfilter/buffersink: Fix indentation (PR #23568)

mkver via ffmpeg-devel <[email protected]>
Newsgroups gmane.comp.video.ffmpeg.devel
Message-ID <178224161548.59.16537958438105953953@29965ddac10e>
PR #23568 opened by mkver
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23568
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23568.patch

Necessary after 509c1f99a7c0a3ffb9387c1aac19fe7b2c87594a.


>From 741dd2bc5ab0c887073d2c6a0f4b219f60afa384 Mon Sep 17 00:00:00 2001
From: Andreas Rheinhardt <[email protected]>
Date: Tue, 23 Jun 2026 21:05:49 +0200
Subject: [PATCH] avfilter/buffersink: Fix indentation

Necessary after 509c1f99a7c0a3ffb9387c1aac19fe7b2c87594a.

Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavfilter/buffersink.c | 70 ++++++++++++++++++++--------------------
 1 file changed, 35 insertions(+), 35 deletions(-)

diff --git a/libavfilter/buffersink.c b/libavfilter/buffersink.c
index dda3abf385..e829007557 100644
--- a/libavfilter/buffersink.c
+++ b/libavfilter/buffersink.c
@@ -299,26 +299,26 @@ static int vsink_query_formats(const AVFilterContext *ctx,
     const BufferSinkContext *buf = ctx->priv;
     int ret;
 
-        if (buf->nb_pixel_formats) {
-            ret = ff_set_pixel_formats_from_list2(ctx, cfg_in, cfg_out, buf->pixel_formats);
-            if (ret < 0)
-                return ret;
-        }
-        if (buf->nb_colorspaces) {
-            ret = ff_set_common_color_spaces_from_list2(ctx, cfg_in, cfg_out, buf->colorspaces);
-            if (ret < 0)
-                return ret;
-        }
-        if (buf->nb_colorranges) {
-            ret = ff_set_common_color_ranges_from_list2(ctx, cfg_in, cfg_out, buf->colorranges);
-            if (ret < 0)
-                return ret;
-        }
-        if (buf->nb_alphamodes) {
-            ret = ff_set_common_alpha_modes_from_list2(ctx, cfg_in, cfg_out, buf->alphamodes);
-            if (ret < 0)
-                return ret;
-        }
+    if (buf->nb_pixel_formats) {
+        ret = ff_set_pixel_formats_from_list2(ctx, cfg_in, cfg_out, buf->pixel_formats);
+        if (ret < 0)
+            return ret;
+    }
+    if (buf->nb_colorspaces) {
+        ret = ff_set_common_color_spaces_from_list2(ctx, cfg_in, cfg_out, buf->colorspaces);
+        if (ret < 0)
+            return ret;
+    }
+    if (buf->nb_colorranges) {
+        ret = ff_set_common_color_ranges_from_list2(ctx, cfg_in, cfg_out, buf->colorranges);
+        if (ret < 0)
+            return ret;
+    }
+    if (buf->nb_alphamodes) {
+        ret = ff_set_common_alpha_modes_from_list2(ctx, cfg_in, cfg_out, buf->alphamodes);
+        if (ret < 0)
+            return ret;
+    }
 
     return 0;
 }
@@ -330,21 +330,21 @@ static int asink_query_formats(const AVFilterContext *ctx,
     const BufferSinkContext *buf = ctx->priv;
     int ret;
 
-        if (buf->nb_sample_formats) {
-            ret = ff_set_sample_formats_from_list2(ctx, cfg_in, cfg_out, buf->sample_formats);
-            if (ret < 0)
-                return ret;
-        }
-        if (buf->nb_samplerates) {
-            ret = ff_set_common_samplerates_from_list2(ctx, cfg_in, cfg_out, buf->samplerates);
-            if (ret < 0)
-                return ret;
-        }
-        if (buf->nb_channel_layouts) {
-            ret = ff_set_common_channel_layouts_from_list2(ctx, cfg_in, cfg_out, buf->channel_layouts);
-            if (ret < 0)
-                return ret;
-        }
+    if (buf->nb_sample_formats) {
+        ret = ff_set_sample_formats_from_list2(ctx, cfg_in, cfg_out, buf->sample_formats);
+        if (ret < 0)
+            return ret;
+    }
+    if (buf->nb_samplerates) {
+        ret = ff_set_common_samplerates_from_list2(ctx, cfg_in, cfg_out, buf->samplerates);
+        if (ret < 0)
+            return ret;
+    }
+    if (buf->nb_channel_layouts) {
+        ret = ff_set_common_channel_layouts_from_list2(ctx, cfg_in, cfg_out, buf->channel_layouts);
+        if (ret < 0)
+            return ret;
+    }
 
     return 0;
 }
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.