summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/codecs/wav.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/codecs/wav.c b/apps/codecs/wav.c
index ca4b4750f4..f6daf25564 100644
--- a/apps/codecs/wav.c
+++ b/apps/codecs/wav.c
@@ -532,12 +532,14 @@ enum codec_status codec_start(struct codec_api* api)
blockalign, channels, bitspersample,
int16_samples+i*samplesperblock*channels,
&decodedsize)
- != CODEC_OK)
+ != CODEC_OK) {
i = CODEC_ERROR;
- goto exit;
- if (decodedsize != samplesperblock)
+ goto exit;
+ }
+ if (decodedsize != samplesperblock) {
i = CODEC_ERROR;
- goto exit;
+ goto exit;
+ }
}
wavbufsize = nblocks*samplesperblock*channels*2;
}