[FFmpeg-cvslog] volume: remove duplicated condition.

Clément Bœsch git at videolan.org
Thu Jan 5 21:53:40 CET 2012


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Thu Jan  5 17:14:01 2012 +0100| [96fc1f07332e58faf23d36263d3581620771fac6] | committer: Clément Bœsch

volume: remove duplicated condition.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=96fc1f07332e58faf23d36263d3581620771fac6
---

 libavfilter/af_volume.c |    4 +---
 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,



More information about the ffmpeg-cvslog mailing list