---
 libavcodec/tta.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 11186b8..de478cc 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -383,15 +383,12 @@ static int tta_decode_frame(AVCodecContext *avctx,
     skip_bits(&s->gb, 32); // frame crc
 
     // convert to output buffer
-    switch(s->bps) {
-        case 2: {
+    if (s->bps == 2) {
             int16_t *samples = data;
             for (p = s->decode_buffer; p < s->decode_buffer + (framelen * 
s->channels); p++) {
                 *samples++ = *p;
             }
-            break;
-        }
-        default:
+    } else {
             av_log(s->avctx, AV_LOG_ERROR, "Error, only 16bit samples 
supported!\n");
     }
 
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to