From b890093c449313068eaee163760702dcf5e65acd Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Oct 2013 12:56:08 +0200 Subject: af_volume: don't change volume if nothing is to be changed On the float path. Note that this skips clipping, but we expect that everything on the audio-path is pre-clipped anyway. --- audio/filter/af_volume.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio') diff --git a/audio/filter/af_volume.c b/audio/filter/af_volume.c index 4b55dd574f..876b1136ce 100644 --- a/audio/filter/af_volume.c +++ b/audio/filter/af_volume.c @@ -112,6 +112,7 @@ static struct mp_audio* play(struct af_instance* af, struct mp_audio* data) int len = c->len/4; // Number of samples for (int ch = 0; ch < nch; ch++) { // Volume control (fader) + if (s->level[ch] != 1.0) { for(i=ch;i