[FFmpeg-cvslog] lavfi/aresample: fix style

Stefano Sabatini git at videolan.org
Wed Dec 26 12:00:59 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Wed Dec 26 01:26:55 2012 +0100| [e06c1475810c3e839a689e364b1e91325f4af23c] | committer: Stefano Sabatini

lavfi/aresample: fix style

Improve overall consistency/improve readability.

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

 libavfilter/af_aresample.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libavfilter/af_aresample.c b/libavfilter/af_aresample.c
index 8606119..17b7630 100644
--- a/libavfilter/af_aresample.c
+++ b/libavfilter/af_aresample.c
@@ -55,20 +55,20 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
     }
 
     if (args) {
-        char *ptr=argd, *token;
+        char *ptr = argd, *token;
 
-        while(token = av_strtok(ptr, ":", &ptr)) {
+        while (token = av_strtok(ptr, ":", &ptr)) {
             char *value;
             av_strtok(token, "=", &value);
 
-            if(value) {
-                if((ret=av_opt_set(aresample->swr, token, value, 0)) < 0)
+            if (value) {
+                if ((ret = av_opt_set(aresample->swr, token, value, 0)) < 0)
                     goto end;
             } else {
                 int out_rate;
                 if ((ret = ff_parse_sample_rate(&out_rate, token, ctx)) < 0)
                     goto end;
-                if((ret = av_opt_set_int(aresample->swr, "osr", out_rate, 0)) < 0)
+                if ((ret = av_opt_set_int(aresample->swr, "osr", out_rate, 0)) < 0)
                     goto end;
             }
         }



More information about the ffmpeg-cvslog mailing list