[FFmpeg-cvslog] tta: use an integer instead of a pointer to iterate output samples

Justin Ruggles git at videolan.org
Sat Nov 12 03:02:03 CET 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Thu Nov  3 22:48:15 2011 -0400| [b656c4d08e196424eb80b706e15d3c49b7c0af37] | committer: Justin Ruggles

tta: use an integer instead of a pointer to iterate output samples

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

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

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index ed8d76b..3e4adf0 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;



More information about the ffmpeg-cvslog mailing list