From b656c4d08e196424eb80b706e15d3c49b7c0af37 Mon Sep 17 00:00:00 2001
From: Justin Ruggles <justin.ruggles@gmail.com>
Date: Thu, 3 Nov 2011 22:48:15 -0400
Subject: [PATCH] tta: use an integer instead of a pointer to iterate output
 samples

---
 libavcodec/tta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index ed8d76bc1a1..3e4adf0c11b 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -402,7 +402,7 @@ static int tta_decode_frame(AVCodecContext *avctx,
     } else {
         // shift samples for 24-bit sample format
         int32_t *samples = data;
-        for (p = s->decode_buffer; p < s->decode_buffer + (framelen * s->channels); p++)
+        for (i = 0; i < framelen * s->channels; i++)
             *samples++ <<= 8;
         // reset decode buffer
         s->decode_buffer = NULL;
-- 
GitLab