X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=b0702ebeb0fa36f7a8e57a945874defbb8fd53fa;hb=3c5a3882f988aba19a984e80119d72ca9d32b7d4;hp=f28e0877cd65df0858b0f64554c8cc278d6f68f1;hpb=2ab823d4a6ef1f96961a82fcf5100a5a46917d0e;p=ffmpeg diff --git a/ffplay.c b/ffplay.c index f28e0877cd6..b0702ebeb0f 100644 --- a/ffplay.c +++ b/ffplay.c @@ -2725,7 +2725,7 @@ static int stream_component_open(VideoState *is, int stream_index) goto fail; link = is->out_audio_filter->inputs[0]; sample_rate = link->sample_rate; - nb_channels = link->channels; + nb_channels = avfilter_link_get_channels(link); channel_layout = link->channel_layout; } #else