summaryrefslogtreecommitdiff
path: root/libavcodec/tta.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2011-11-03 22:48:15 -0400
committerJustin Ruggles <justin.ruggles@gmail.com>2011-11-11 14:18:22 -0500
commitb656c4d08e196424eb80b706e15d3c49b7c0af37 (patch)
tree3b2a05a045b137fa4201c26332c45c09c1325ae3 /libavcodec/tta.c
parent5c210e2cb9d7fbdd6175e116502c8ce23267843c (diff)
tta: use an integer instead of a pointer to iterate output samples
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r--libavcodec/tta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tta.c b/libavcodec/tta.c
index ed8d76bc1a..3e4adf0c11 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;