lavfi/testsrc: drop pointless parentheses
authorStefano Sabatini <stefasab@gmail.com>
Wed, 1 Aug 2012 08:30:41 +0000 (10:30 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Wed, 1 Aug 2012 09:05:47 +0000 (11:05 +0200)
libavfilter/vsrc_testsrc.c

index d33f197..36a9219 100644 (file)
@@ -94,7 +94,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     }
     av_freep(&test->rate);
 
-    if ((test->duration) && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
+    if (test->duration && (ret = av_parse_time(&duration, test->duration, 1)) < 0) {
         av_log(ctx, AV_LOG_ERROR, "Invalid duration: '%s'\n", test->duration);
         return ret;
     }