diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-04 06:48:15 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2011-11-11 23:18:22 +0400 |
commit | b656c4d08e196424eb80b706e15d3c49b7c0af37 (patch) | |
tree | 3b2a05a045b137fa4201c26332c45c09c1325ae3 /libavcodec/tta.c | |
parent | 5c210e2cb9d7fbdd6175e116502c8ce23267843c (diff) |
tta: use an integer instead of a pointer to iterate output samples
Diffstat (limited to 'libavcodec/tta.c')
-rw-r--r-- | libavcodec/tta.c | 2 |
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; |