[FFmpeg-cvslog] lavfi/testsrc: drop pointless parentheses

Stefano Sabatini git at videolan.org
Wed Aug 1 11:10:05 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Aug  1 10:30:41 2012 +0200| [7ddf082f0425ef40bc679d4fae901a1d73463d1c] | committer: Stefano Sabatini

lavfi/testsrc: drop pointless parentheses

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

 libavfilter/vsrc_testsrc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vsrc_testsrc.c b/libavfilter/vsrc_testsrc.c
index d33f197..36a9219 100644
--- a/libavfilter/vsrc_testsrc.c
+++ b/libavfilter/vsrc_testsrc.c
@@ -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;
     }



More information about the ffmpeg-cvslog mailing list