mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tta: use interger instead of pointer to iterate output samples for 24-bit case
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
e2f89f7804
commit
0f740fea85
@ -381,7 +381,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
|
|||||||
case 3: {
|
case 3: {
|
||||||
// shift samples for 24-bit sample format
|
// shift samples for 24-bit sample format
|
||||||
int32_t *samples = (int32_t *)frame->data[0];
|
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;
|
*samples++ <<= 8;
|
||||||
// reset decode buffer
|
// reset decode buffer
|
||||||
s->decode_buffer = NULL;
|
s->decode_buffer = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user