mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
alsa-compress-offload-sink: Miscellaneous clean up
- Fix typo - Fix index check in port_enum_formats()
This commit is contained in:
parent
59ad6c26aa
commit
293ba8aee3
1 changed files with 2 additions and 2 deletions
|
|
@ -57,7 +57,7 @@
|
|||
#include <tinycompress/tinycompress.h>
|
||||
|
||||
/*
|
||||
* 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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue