diff options
author | wm4 <wm4@nowhere> | 2013-05-12 21:47:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-05-12 21:47:55 +0200 |
commit | e6e5a7b221ef2fcdd5a1982d6fdcb627100447d2 (patch) | |
tree | 08b54ef9bb771434fc7fbe9185793503d3ba314c /audio/filter/af_bs2b.c | |
parent | 6a83ef1552de4a1a71da49e45647ce1a4ce64e53 (diff) | |
parent | 48f94311516dc1426644b3e68b2a48c22727e1e7 (diff) | |
download | mpv-e6e5a7b221ef2fcdd5a1982d6fdcb627100447d2.tar.bz2 mpv-e6e5a7b221ef2fcdd5a1982d6fdcb627100447d2.tar.xz |
Merge branch 'audio_changes'
Conflicts:
audio/out/ao_lavc.c
Diffstat (limited to 'audio/filter/af_bs2b.c')
-rw-r--r-- | audio/filter/af_bs2b.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/audio/filter/af_bs2b.c b/audio/filter/af_bs2b.c index aebcc3b201..f8003a70a3 100644 --- a/audio/filter/af_bs2b.c +++ b/audio/filter/af_bs2b.c @@ -105,9 +105,8 @@ static int control(struct af_instance *af, int cmd, void *arg) format = ((struct mp_audio*)arg)->format; af->data->rate = ((struct mp_audio*)arg)->rate; - af->data->nch = 2; // bs2b is useful only for 2ch audio - af->data->bps = ((struct mp_audio*)arg)->bps; - af->data->format = format; + mp_audio_set_num_channels(af->data, 2); // bs2b is useful only for 2ch audio + mp_audio_set_format(af->data, format); /* check for formats supported by libbs2b and assign corresponding handlers */ @@ -162,8 +161,7 @@ static int control(struct af_instance *af, int cmd, void *arg) break; default: af->play = play_f; - af->data->format = AF_FORMAT_FLOAT_NE; - af->data->bps = 4; + mp_audio_set_format(af->data, AF_FORMAT_FLOAT_NE); break; } |