[FFmpeg-cvslog] avcodec/exr: indent the if (layer_match) part

Martin Vignali git at videolan.org
Mon Jun 6 15:59:57 CEST 2016


ffmpeg | branch: master | Martin Vignali <martin.vignali at gmail.com> | Sat Jun  4 17:45:31 2016 +0200| [d24eb9a3c6ccf57ba5a0f0848d033ada5721de29] | committer: Paul B Mahol

avcodec/exr: indent the if (layer_match) part

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

 libavcodec/exr.c |   34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/libavcodec/exr.c b/libavcodec/exr.c
index 55bdf6e..088f64b 100644
--- a/libavcodec/exr.c
+++ b/libavcodec/exr.c
@@ -1348,23 +1348,23 @@ static int decode_header(EXRContext *s)
                 }
 
                 if (layer_match) { /* only search channel if the layer match is valid */
-                if (!strcmp(ch_gb.buffer, "R") ||
-                    !strcmp(ch_gb.buffer, "X") ||
-                    !strcmp(ch_gb.buffer, "U"))
-                    channel_index = 0;
-                else if (!strcmp(ch_gb.buffer, "G") ||
-                         !strcmp(ch_gb.buffer, "Y") ||
-                         !strcmp(ch_gb.buffer, "V"))
-                    channel_index = 1;
-                else if (!strcmp(ch_gb.buffer, "B") ||
-                         !strcmp(ch_gb.buffer, "Z") ||
-                         !strcmp(ch_gb.buffer, "W"))
-                    channel_index = 2;
-                else if (!strcmp(ch_gb.buffer, "A"))
-                    channel_index = 3;
-                else
-                    av_log(s->avctx, AV_LOG_WARNING,
-                           "Unsupported channel %.256s.\n", ch_gb.buffer);
+                    if (!strcmp(ch_gb.buffer, "R") ||
+                        !strcmp(ch_gb.buffer, "X") ||
+                        !strcmp(ch_gb.buffer, "U"))
+                        channel_index = 0;
+                    else if (!strcmp(ch_gb.buffer, "G") ||
+                             !strcmp(ch_gb.buffer, "Y") ||
+                             !strcmp(ch_gb.buffer, "V"))
+                        channel_index = 1;
+                    else if (!strcmp(ch_gb.buffer, "B") ||
+                             !strcmp(ch_gb.buffer, "Z") ||
+                             !strcmp(ch_gb.buffer, "W"))
+                        channel_index = 2;
+                    else if (!strcmp(ch_gb.buffer, "A"))
+                        channel_index = 3;
+                    else
+                        av_log(s->avctx, AV_LOG_WARNING,
+                               "Unsupported channel %.256s.\n", ch_gb.buffer);
                 }
 
                 /* skip until you get a 0 */



More information about the ffmpeg-cvslog mailing list