From 293ba8aee3e43fe2ee9b06fe12d8cf3cb6a06998 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Mon, 28 Nov 2022 18:36:06 +0100 Subject: [PATCH] alsa-compress-offload-sink: Miscellaneous clean up - Fix typo - Fix index check in port_enum_formats() --- spa/plugins/alsa/alsa-compress-offload-sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spa/plugins/alsa/alsa-compress-offload-sink.c b/spa/plugins/alsa/alsa-compress-offload-sink.c index a240fd7c3..966e680b3 100644 --- a/spa/plugins/alsa/alsa-compress-offload-sink.c +++ b/spa/plugins/alsa/alsa-compress-offload-sink.c @@ -57,7 +57,7 @@ #include /* - * This creates a Pipewire sink node which uses the tinycompress user space + * This creates a PipeWire sink node which uses the tinycompress user space * library to use the ALSA Compress-Offload API for writing compressed data * like MP3, FLAC etc. to an DSP that can handle such data directly. * @@ -463,7 +463,7 @@ port_enum_formats(struct impl *this, struct spa_audio_info info; uint32_t codec; - if (index > this->num_codecs) + if (index >= this->num_codecs) return 0; codec = this->codecs_supported[index];