From 447841945e37e2e7dc1a67e4d28b0c7ec90e6024 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Wed, 7 Aug 2024 11:46:31 +0200 Subject: [PATCH] Try this workaround for ffmpeg-7 --- src/video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video.c b/src/video.c index 11f98c7..f7da528 100644 --- a/src/video.c +++ b/src/video.c @@ -181,7 +181,7 @@ static input_container *open_audio_input(SEXP audio){ #ifdef NEW_CHANNEL_API if(channels) decoder->ch_layout.nb_channels = channels; - if (decoder->ch_layout.order == AV_CHANNEL_ORDER_UNSPEC) + if (channels || decoder->ch_layout.order == AV_CHANNEL_ORDER_UNSPEC) av_channel_layout_default(&decoder->ch_layout, decoder->ch_layout.nb_channels); #else if(channels)