From 07dbea70335ee57f097f7ddb8b0456b606f77df6 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 11 Feb 2012 22:57:18 +0000 Subject: [PATCH] tta: reindent Signed-off-by: Paul B Mahol Signed-off-by: Michael Niedermayer --- libavcodec/tta.c | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/libavcodec/tta.c b/libavcodec/tta.c index 6b8e0e9e19..8a628a53a3 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;