summaryrefslogtreecommitdiff
path: root/apps/codecs/libpcm
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libpcm')
-rw-r--r--apps/codecs/libpcm/yamaha_adpcm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/codecs/libpcm/yamaha_adpcm.c b/apps/codecs/libpcm/yamaha_adpcm.c
index 9f1a4742ee..0b997ad776 100644
--- a/apps/codecs/libpcm/yamaha_adpcm.c
+++ b/apps/codecs/libpcm/yamaha_adpcm.c
@@ -82,6 +82,12 @@ static bool set_format(struct pcm_format *format)
82{ 82{
83 fmt = format; 83 fmt = format;
84 84
85 if (fmt->channels == 0)
86 {
87 DEBUGF("CODEC_ERROR: channels is 0\n");
88 return false;
89 }
90
85 if (fmt->bitspersample != 4) 91 if (fmt->bitspersample != 4)
86 { 92 {
87 DEBUGF("CODEC_ERROR: yamaha adpcm must be 4 bitspersample: %d\n", 93 DEBUGF("CODEC_ERROR: yamaha adpcm must be 4 bitspersample: %d\n",