From 96fc1f07332e58faf23d36263d3581620771fac6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= Date: Thu, 5 Jan 2012 17:14:01 +0100 Subject: [PATCH] volume: remove duplicated condition. --- libavfilter/af_volume.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavfilter/af_volume.c b/libavfilter/af_volume.c index a869b44253..99ae8b82fe 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,