diff options
Diffstat (limited to '')
-rw-r--r-- | src/audio_parser.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/audio_parser.c b/src/audio_parser.c index 60318fc99..039ffa1ab 100644 --- a/src/audio_parser.c +++ b/src/audio_parser.c @@ -28,6 +28,7 @@ #include "audio_check.h" #include <assert.h> +#include <string.h> #include <stdlib.h> /** @@ -97,7 +98,11 @@ parse_sample_format(const char *src, bool mask, break; case 24: - sample_format = SAMPLE_FORMAT_S24_P32; + if (memcmp(endptr, "_3", 2) == 0) { + sample_format = SAMPLE_FORMAT_S24; + endptr += 2; + } else + sample_format = SAMPLE_FORMAT_S24_P32; break; case 32: |