Skip to content
Snippets Groups Projects
Commit 1da856cc authored by Gregory Nutt's avatar Gregory Nutt
Browse files

PCM: Forget to increment pointers in one part of sub-sampling

parent ab26d97d
No related branches found
No related tags found
No related merge requests found
......@@ -569,6 +569,16 @@ static void pcm_subsample(FAR struct pcm_decode_s *priv,
*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
* skip value
......
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