]> git.alsa-project.org Git - alsa-utils.git/commit
aplay: Fix parsing of format with WAV_FMT_EXTENSIBLE header
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Thu, 10 Nov 2022 23:45:01 +0000 (00:45 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 Jan 2023 18:00:34 +0000 (19:00 +0100)
commit4f7e1af85ad79797cf7195def1564930072d2cc0
treed8f20e3bab06fc6a816f5f7db3045ecceb436283
parentf67b3ed002fc4327ece6e7533cae038539e80e36
aplay: Fix parsing of format with WAV_FMT_EXTENSIBLE header

WAV_FMT_EXTENSIBLE header contains valid bits per sample, which can be
different than bits per sample. Make sure it is taken into account when
parsing headers and choosing playback format.

BugLink: https://github.com/alsa-project/alsa-utils/pull/178
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
aplay/aplay.c