X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffplay.c;h=b0702ebeb0fa36f7a8e57a945874defbb8fd53fa;hb=78c7197ea0e5c53393849a32dd6f49e3b89f7815;hp=f28e0877cd65df0858b0f64554c8cc278d6f68f1;hpb=7c6ae9ca0489aa3f355973f66ed7c28097ff6126;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