Skip to content

Commit

Permalink
LWLibavAudioSource: set default output channel layout (#64)
Browse files Browse the repository at this point in the history
Regression from 2df8afd.
  • Loading branch information
Asd-g committed Apr 7, 2024
1 parent e81bd1f commit a801896
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AviSynth/audio_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ void as_setup_audio_rendering
if ( channel_layout != 0 )
av_channel_layout_from_string(&aohp->output_channel_layout, channel_layout );
else
av_channel_layout_copy(&aohp->output_channel_layout, &ctx->ch_layout );
{
av_channel_layout_copy(&aohp->output_channel_layout, &ctx->ch_layout);
if (aohp->output_channel_layout.order == AV_CHANNEL_ORDER_UNSPEC)
av_channel_layout_default(&aohp->output_channel_layout, aohp->output_channel_layout.nb_channels);
}
/* Sample rate. */
if( sample_rate > 0 )
aohp->output_sample_rate = sample_rate;
Expand Down

0 comments on commit a801896

Please sign in to comment.