volume: remove duplicated condition.
This commit is contained in:
parent
35da85562d
commit
96fc1f0733
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user