volume: remove duplicated condition.

This commit is contained in:
Clément Bœsch 2012-01-05 17:14:01 +01:00
parent 35da85562d
commit 96fc1f0733

View File

@ -48,9 +48,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
if (*tail) { if (*tail) {
if (!strcmp(tail, "dB")) { if (!strcmp(tail, "dB")) {
/* consider the argument an adjustement in decibels */ /* consider the argument an adjustement in decibels */
if (!strcmp(tail, "dB")) { d = pow(10, d/20);
d = pow(10,d/20);
}
} else { } else {
/* parse the argument as an expression */ /* parse the argument as an expression */
ret = av_expr_parse_and_eval(&d, args, NULL, NULL, ret = av_expr_parse_and_eval(&d, args, NULL, NULL,