PCM: Forget to increment pointers in one part of sub-sampling
This commit is contained in:
parent
ab26d97d74
commit
1da856cca9
@ -569,6 +569,16 @@ static void pcm_subsample(FAR struct pcm_decode_s *priv,
|
|||||||
*dest++ = *src++;
|
*dest++ = *src++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* If the data is already position at the beginning of the audio
|
||||||
|
* buffer, then just increment the buffer pointers around the
|
||||||
|
* data.
|
||||||
|
*/
|
||||||
|
|
||||||
|
src += copysize;
|
||||||
|
dest += copysize;
|
||||||
|
}
|
||||||
|
|
||||||
/* Update the number of bytes in the working buffer and reset the
|
/* Update the number of bytes in the working buffer and reset the
|
||||||
* skip value
|
* skip value
|
||||||
|
Loading…
Reference in New Issue
Block a user