This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 43153300970d4ebf952a7574613d1c5404bc1c46 Author: ViezeVingertjes <[email protected]> AuthorDate: Thu Nov 26 10:59:31 2026 +0100 audio/pcm_decode: Fix nxstyle errors. Alignment and blank lines after declarations; no functional change. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: ViezeVingertjes <[email protected]> --- audio/pcm_decode.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index 5f5bf7d223a..52eb88b910a 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -493,7 +493,7 @@ static void pcm_subsample_configure(FAR struct pcm_decode_s *priv, * next audio buffer that we receive. */ - priv->subsample = subsample; + priv->subsample = subsample; } } #endif @@ -1089,9 +1089,11 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev, #ifndef CONFIG_AUDIO_FORMAT_RAW ssize_t headersize = pcm_parsewav(priv, &apb->samp[apb->curbyte], bytesleft); + if (headersize > 0) { struct audio_caps_s caps; + memset(&caps, 0, sizeof(caps)); /* Configure the lower level for the number of channels, bitrate,
