[FFmpeg-cvslog] tta: reindent

Paul B Mahol git at videolan.org
Sun Feb 12 00:20:16 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Feb 11 22:57:18 2012 +0000| [07dbea70335ee57f097f7ddb8b0456b606f77df6] | committer: Michael Niedermayer

tta: reindent

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/tta.c |   46 +++++++++++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 6b8e0e9..8a628a5 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -416,30 +416,30 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
         return -1;
     skip_bits_long(&s->gb, 32); // frame crc
 
-        // convert to output buffer
-        switch(s->bps) {
-            case 1: {
-                uint8_t *samples = (uint8_t *)s->frame.data[0];
-                for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
-                    *samples++ = *p + 0x80;
-                break;
-            }
-            case 2: {
-                uint16_t *samples = (int16_t *)s->frame.data[0];
-                for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
-                    *samples++ = *p;
-                break;
-            }
-            case 3: {
-                // shift samples for 24-bit sample format
-                int32_t *samples = (int32_t *)s->frame.data[0];
-                for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
-                    *samples++ <<= 8;
-                // reset decode buffer
-                s->decode_buffer = NULL;
-                break;
-            }
+    // convert to output buffer
+    switch (s->bps) {
+    case 1: {
+        uint8_t *samples = (uint8_t *)s->frame.data[0];
+        for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
+            *samples++ = *p + 0x80;
+        break;
         }
+    case 2: {
+        uint16_t *samples = (int16_t *)s->frame.data[0];
+        for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
+            *samples++ = *p;
+        break;
+        }
+    case 3: {
+        // shift samples for 24-bit sample format
+        int32_t *samples = (int32_t *)s->frame.data[0];
+        for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
+            *samples++ <<= 8;
+        // reset decode buffer
+        s->decode_buffer = NULL;
+        break;
+        }
+    }
 
     *got_frame_ptr   = 1;
     *(AVFrame *)data = s->frame;



More information about the ffmpeg-cvslog mailing list