[FFmpeg-devel] [PATCH] lavd/lavfi: cosmetics: reindent a block.

Nicolas George nicolas.george at normalesup.org
Thu Dec 15 19:54:37 CET 2011


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavdevice/lavfi.c |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
index cd73234..8c14fca 100644
--- a/libavdevice/lavfi.c
+++ b/libavdevice/lavfi.c
@@ -185,23 +185,23 @@ av_cold static int lavfi_read_header(AVFormatContext *avctx,
         }
 
         if (type == AVMEDIA_TYPE_VIDEO) {
-        AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();
-        buffersink_params->pixel_fmts = pix_fmts;
+            AVBufferSinkParams *buffersink_params = av_buffersink_params_alloc();
+            buffersink_params->pixel_fmts = pix_fmts;
 
 #if FF_API_OLD_VSINK_API
-        ret = avfilter_graph_create_filter(&sink, buffersink,
-                                           inout->name, NULL,
-                                           pix_fmts, lavfi->graph);
+            ret = avfilter_graph_create_filter(&sink, buffersink,
+                                               inout->name, NULL,
+                                               pix_fmts, lavfi->graph);
 #else
-        buffersink_params->pixel_fmts = pix_fmts;
-        ret = avfilter_graph_create_filter(&sink, buffersink,
-                                           inout->name, NULL,
-                                           buffersink_params, lavfi->graph);
+            buffersink_params->pixel_fmts = pix_fmts;
+            ret = avfilter_graph_create_filter(&sink, buffersink,
+                                               inout->name, NULL,
+                                               buffersink_params, lavfi->graph);
 #endif
-        av_freep(&buffersink_params);
+            av_freep(&buffersink_params);
 
-        if (ret < 0)
-            goto end;
+            if (ret < 0)
+                goto end;
         } else if (type == AVMEDIA_TYPE_AUDIO) {
             enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_S16, -1 };
             const int packing_fmts[] = { AVFILTER_PACKED, -1 };
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list