diff mbox series

[FFmpeg-devel,v2,3/4] avfilter/vf_libopencv: reindent after last commit

Message ID 1589382763-28061-3-git-send-email-lance.lmwang@gmail.com
State New
Headers show
Series [FFmpeg-devel,v2,1/4] doc/filters: add anchor for addroi
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Limin Wang May 13, 2020, 3:12 p.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavfilter/vf_libopencv.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 141d696..5899867 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -528,12 +528,12 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 
     /* facedetect filter will passthrought the input frame */
     if (strcmp(s->name, "facedetect")) {
-    out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
-    if (!out) {
-        av_frame_free(&in);
-        return AVERROR(ENOMEM);
-    }
-    av_frame_copy_props(out, in);
+        out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
+        if (!out) {
+            av_frame_free(&in);
+            return AVERROR(ENOMEM);
+        }
+        av_frame_copy_props(out, in);
     } else {
         out = in;
     }
@@ -541,9 +541,9 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     fill_iplimage_from_frame(&inimg , in , inlink->format);
 
     if (strcmp(s->name, "facedetect")) {
-    fill_iplimage_from_frame(&outimg, out, inlink->format);
-    s->end_frame_filter(ctx, &inimg, &outimg);
-    fill_frame_from_iplimage(out, &outimg, inlink->format);
+        fill_iplimage_from_frame(&outimg, out, inlink->format);
+        s->end_frame_filter(ctx, &inimg, &outimg);
+        fill_frame_from_iplimage(out, &outimg, inlink->format);
     } else {
         s->end_frame_filter(ctx, &inimg, NULL);
     }
@@ -553,7 +553,7 @@  static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     }
 
     if (out != in)
-    av_frame_free(&in);
+        av_frame_free(&in);
 
     return ff_filter_frame(outlink, out);
 }