Browse Source

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

tags/n0.9
Justin Ruggles 13 years ago
parent
commit
b656c4d08e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/tta.c

+ 1
- 1
libavcodec/tta.c View File

@@ -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;


Loading…
Cancel
Save