[FFmpeg-cvslog] sws: cosmetics

Anton Khirnov git at videolan.org
Sat Jul 3 17:20:09 EEST 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed May 19 11:48:23 2021 +0200| [d3d8e09640ed311320c2bb50d44d1d977512e972] | committer: Anton Khirnov

sws: cosmetics

Reindent after previous commit, rewrap long lines.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d3d8e09640ed311320c2bb50d44d1d977512e972
---

 libswscale/swscale.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 867995c9c7..7dbe0f59c5 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -847,15 +847,15 @@ static int scale_cascaded(SwsContext *c,
                           int srcSliceY, int srcSliceH,
                           uint8_t * const dst[], const int dstStride[])
 {
-        int ret = sws_scale(c->cascaded_context[0],
+    int ret = sws_scale(c->cascaded_context[0],
                         srcSlice, srcStride, srcSliceY, srcSliceH,
                         c->cascaded_tmp, c->cascaded_tmpStride);
-        if (ret < 0)
-            return ret;
-        ret = sws_scale(c->cascaded_context[1],
-                        (const uint8_t * const * )c->cascaded_tmp, c->cascaded_tmpStride, 0, c->cascaded_context[0]->dstH,
-                        dst, dstStride);
+    if (ret < 0)
         return ret;
+    ret = sws_scale(c->cascaded_context[1],
+                    (const uint8_t * const * )c->cascaded_tmp, c->cascaded_tmpStride,
+                    0, c->cascaded_context[0]->dstH, dst, dstStride);
+    return ret;
 }
 
 /**



More information about the ffmpeg-cvslog mailing list