summaryrefslogtreecommitdiffstats
path: root/libavfilter/af_volume.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-01-05 17:14:01 +0100
committerClément Bœsch <ubitux@gmail.com>2012-01-05 21:53:18 +0100
commit96fc1f07332e58faf23d36263d3581620771fac6 (patch)
tree7d1de491b9a3fbd2e6eba7dcec4cd21b7e2ed170 /libavfilter/af_volume.c
parent35da85562d2f731855b28d4ab3b9b0679730ebf7 (diff)
downloadffmpeg-streaming-96fc1f07332e58faf23d36263d3581620771fac6.zip
ffmpeg-streaming-96fc1f07332e58faf23d36263d3581620771fac6.tar.gz
volume: remove duplicated condition.
Diffstat (limited to 'libavfilter/af_volume.c')
-rw-r--r--libavfilter/af_volume.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c
index a869b44..99ae8b8 100644
--- a/libavfilter/af_volume.c
+++ b/libavfilter/af_volume.c
@@ -48,9 +48,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
if (*tail) {
if (!strcmp(tail, "dB")) {
/* consider the argument an adjustement in decibels */
- if (!strcmp(tail, "dB")) {
- d = pow(10,d/20);
- }
+ d = pow(10, d/20);
} else {
/* parse the argument as an expression */
ret = av_expr_parse_and_eval(&d, args, NULL, NULL,
OpenPOWER on IntegriCloud