[FFmpeg-cvslog] avformat/fitsenc: reindent switch

Paul B Mahol git at videolan.org
Sun May 21 22:06:02 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun May 21 20:43:52 2023 +0200| [fd2ca3d4c5949e7b13b09ef00414ad4ca66881c5] | committer: Paul B Mahol

avformat/fitsenc: reindent switch

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

 libavformat/fitsenc.c | 84 +++++++++++++++++++++++++--------------------------
 1 file changed, 42 insertions(+), 42 deletions(-)

diff --git a/libavformat/fitsenc.c b/libavformat/fitsenc.c
index 1df7e2bcf2..90bb71fd17 100644
--- a/libavformat/fitsenc.c
+++ b/libavformat/fitsenc.c
@@ -84,48 +84,48 @@ static int write_image_header(AVFormatContext *s)
     float datamax, datamin;
 
     switch (encctx->format) {
-        case AV_PIX_FMT_GRAY8:
-            bitpix = 8;
-            naxis = 2;
-            datamin = 0;
-            datamax = 255;
-            break;
-        case AV_PIX_FMT_GRAY16BE:
-            bitpix = 16;
-            naxis = 2;
-            bzero = 32768;
-            datamin = 0;
-            datamax = 65535;
-            break;
-        case AV_PIX_FMT_GBRP:
-        case AV_PIX_FMT_GBRAP:
-            bitpix = 8;
-            naxis = 3;
-            rgb = 1;
-            if (encctx->format == AV_PIX_FMT_GBRP) {
-                naxis3 = 3;
-            } else {
-                naxis3 = 4;
-            }
-            datamin = 0;
-            datamax = 255;
-            break;
-        case AV_PIX_FMT_GBRP16BE:
-        case AV_PIX_FMT_GBRAP16BE:
-            bitpix = 16;
-            naxis = 3;
-            rgb = 1;
-            if (encctx->format == AV_PIX_FMT_GBRP16BE) {
-                naxis3 = 3;
-            } else {
-                naxis3 = 4;
-            }
-            bzero = 32768;
-            datamin = 0;
-            datamax = 65535;
-            break;
-        default:
-            return AVERROR(EINVAL);
+    case AV_PIX_FMT_GRAY8:
+        bitpix = 8;
+        naxis = 2;
+        datamin = 0;
+        datamax = 255;
+        break;
+    case AV_PIX_FMT_GRAY16BE:
+        bitpix = 16;
+        naxis = 2;
+        bzero = 32768;
+        datamin = 0;
+        datamax = 65535;
+        break;
+    case AV_PIX_FMT_GBRP:
+    case AV_PIX_FMT_GBRAP:
+        bitpix = 8;
+        naxis = 3;
+        rgb = 1;
+        if (encctx->format == AV_PIX_FMT_GBRP) {
+            naxis3 = 3;
+        } else {
+            naxis3 = 4;
+        }
+        datamin = 0;
+        datamax = 255;
+        break;
+    case AV_PIX_FMT_GBRP16BE:
+    case AV_PIX_FMT_GBRAP16BE:
+        bitpix = 16;
+        naxis = 3;
+        rgb = 1;
+        if (encctx->format == AV_PIX_FMT_GBRP16BE) {
+            naxis3 = 3;
+        } else {
+            naxis3 = 4;
+        }
+        bzero = 32768;
+        datamin = 0;
+        datamax = 65535;
+        break;
+    default:
+        return AVERROR(EINVAL);
     }
 
     if (fitsctx->first_image) {



More information about the ffmpeg-cvslog mailing list