Skip to content

Commit

Permalink
Try this workaround for ffmpeg-7
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 7, 2024
1 parent cbf9c33 commit 4478419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4478419

Please sign in to comment.