xiaoxiang781216 commented on a change in pull request #2950: URL: https://github.com/apache/incubator-nuttx/pull/2950#discussion_r585650684
########## File path: audio/pcm_decode.c ########## @@ -1087,7 +1090,8 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev, { /* Parse and verify the candidate PCM WAV file header */ - if (pcm_parsewav(priv, &apb->samp[apb->curbyte])) +#ifndef CONFIG_AUDIO_FORMAT_RAW + if (pcm_parsewav(priv, &apb->samp[apb->curbyte], bytesleft)) Review comment: the out if statement need be removed ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org