[FFmpeg-cvslog] tta: use interger instead of pointer to iterate output samples for 24-bit case

Paul B Mahol git at videolan.org
Mon Jun 3 02:21:28 CEST 2013


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jun  2 22:43:31 2013 +0000| [0f740fea856b8995c4f83f54192b4857112da810] | committer: Paul B Mahol

tta: use interger instead of pointer to iterate output samples for 24-bit case

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

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

diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index 5b7c95d..8b90d7f 100644
--- a/libavcodec/tta.c
+++ b/libavcodec/tta.c
@@ -381,7 +381,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
     case 3: {
         // shift samples for 24-bit sample format
         int32_t *samples = (int32_t *)frame->data[0];
-        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