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

Michael Niedermayer michael at niedermayer.cc
Sat Feb 1 04:01:21 EET 2025


On Fri, Jan 31, 2025 at 10:45:13PM -0300, James Almer wrote:
> On 1/31/2025 10:43 PM, Michael Niedermayer wrote:
> > 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)
> 
> I can't test, so i wrote it blindly.
> 
> > 
> > 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
> 
> Is that the only error? Can you check if it compiles if you fix that typo?

builds and passes fate

happy to be able to help

thx

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue.
-- Xenocrates
-------------- 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/7b29acfb/attachment.sig>


More information about the ffmpeg-devel mailing list