1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

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 (!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,