Skip to content
Snippets Groups Projects
Commit b656c4d0 authored by Justin Ruggles's avatar Justin Ruggles
Browse files

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

parent 5c210e2c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment