From 7971bb87cb46f90152913de6ac673ae3bd1637a3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 5 Apr 2013 20:39:52 +0200 Subject: af: use mp_chmap for mp_audio, include channel map in format negotiation Now af_lavrresample pretends to reorder the channels, although it doesn't yet, and nothing sets non-standard layouts either. --- audio/filter/af_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/filter/af_format.c') diff --git a/audio/filter/af_format.c b/audio/filter/af_format.c index 5988d25118..616bc9e494 100644 --- a/audio/filter/af_format.c +++ b/audio/filter/af_format.c @@ -120,7 +120,7 @@ static int control(struct af_instance* af, int cmd, void* arg) buf1, buf2); af->data->rate = data->rate; - mp_audio_set_num_channels(af->data, data->nch); + mp_audio_set_channels(af->data, &data->channels); af->mul = (double)af->data->bps / data->bps; af->play = play; // set default -- cgit v1.2.3