[FFmpeg-devel] [PATCH] avdevice/alsa_dec: add a ch_layout option

Michael Niedermayer michael at niedermayer.cc
Sat Feb 1 03:43:55 EET 2025


On Tue, Jan 28, 2025 at 09:57:57AM -0300, James Almer wrote:
> Missed in ffc4fd3cc2ccb2cadb71f19849842b18ca1281c6, which after
> e78173557da898f18a78241cc3525b76694164b5 broke setting channel count.
> 
> Should fix ticket #11434.
> 
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavdevice/alsa.h          |  4 ++++
>  libavdevice/alsa_dec.c      | 24 +++++++++++++++++++-----
>  libavdevice/version_major.h |  1 +
>  3 files changed, 24 insertions(+), 5 deletions(-)

seems not to build on its own (if its intended to)

libavdevice/alsa_dec.c:163:59: error: ‘AV_OPT_TYPE_CH_LAYOUT’ undeclared here (not in a function); did you mean ‘AV_OPT_TYPE_CHLAYOUT’?
  163 |     { "ch_layout",   "", offsetof(AlsaData, ch_layout),   AV_OPT_TYPE_CH_LAYOUT, {.str = "2C"}, INT_MIN, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
      |                                                           ^~~~~~~~~~~~~~~~~~~~~
      |                                                           AV_OPT_TYPE_CHLAYOUT
make: *** [ffbuild/common.mak:81: libavdevice/alsa_dec.o] Error 1


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250201/b4b3941f/attachment.sig>


More information about the ffmpeg-devel mailing list