[FFmpeg-cvslog] lavfi/vidstabtransform: apply various cosmetical nits

Stefano Sabatini git at videolan.org
Thu Jan 16 12:37:33 CET 2014


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jan 16 12:25:59 2014 +0100| [a64333db5fefdec89533b6bec299fe169ef7d77d] | committer: Stefano Sabatini

lavfi/vidstabtransform: apply various cosmetical nits

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

 libavfilter/vf_vidstabdetect.c    |    1 -
 libavfilter/vf_vidstabtransform.c |    8 ++++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/libavfilter/vf_vidstabdetect.c b/libavfilter/vf_vidstabdetect.c
index 008c993..9b4b20f 100644
--- a/libavfilter/vf_vidstabdetect.c
+++ b/libavfilter/vf_vidstabdetect.c
@@ -152,7 +152,6 @@ static int config_input(AVFilterLink *inlink)
     return 0;
 }
 
-
 static int filter_frame(AVFilterLink *inlink, AVFrame *in)
 {
     AVFilterContext *ctx = inlink->dst;
diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c
index b4ef1c2..e31c0a6 100644
--- a/libavfilter/vf_vidstabtransform.c
+++ b/libavfilter/vf_vidstabtransform.c
@@ -187,7 +187,7 @@ static int config_input(AVFilterLink *inlink)
     av_log(ctx, AV_LOG_INFO, "    smoothing = %d\n", tc->conf.smoothing);
     av_log(ctx, AV_LOG_INFO, "    optalgo   = %s\n",
            tc->conf.camPathAlgo == VSOptimalL1 ? "opt" :
-           (tc->conf.camPathAlgo == VSGaussian ? "gauss" : "avg" ));
+           (tc->conf.camPathAlgo == VSGaussian ? "gauss" : "avg"));
     av_log(ctx, AV_LOG_INFO, "    maxshift  = %d\n", tc->conf.maxShift);
     av_log(ctx, AV_LOG_INFO, "    maxangle  = %f\n", tc->conf.maxAngle);
     av_log(ctx, AV_LOG_INFO, "    crop      = %s\n", tc->conf.crop ? "Black" : "Keep");
@@ -195,9 +195,9 @@ static int config_input(AVFilterLink *inlink)
     av_log(ctx, AV_LOG_INFO, "    invert    = %s\n", tc->conf.invert ? "True" : "False");
     av_log(ctx, AV_LOG_INFO, "    zoom      = %f\n", tc->conf.zoom);
     av_log(ctx, AV_LOG_INFO, "    optzoom   = %s\n",
-           tc->conf.optZoom == 1 ? "Static (1)" : (tc->conf.optZoom == 2 ? "Dynamic (2)" : "Off (0)" ));
+           tc->conf.optZoom == 1 ? "Static (1)" : (tc->conf.optZoom == 2 ? "Dynamic (2)" : "Off (0)"));
     if (tc->conf.optZoom == 2)
-        av_log(ctx, AV_LOG_INFO, "    zoomspeed = %g\n", tc->conf.zoomSpeed );
+        av_log(ctx, AV_LOG_INFO, "    zoomspeed = %g\n", tc->conf.zoomSpeed);
     av_log(ctx, AV_LOG_INFO, "    interpol  = %s\n", getInterpolationTypeName(tc->conf.interpolType));
 
     f = fopen(tc->input, "r");
@@ -221,7 +221,7 @@ static int config_input(AVFilterLink *inlink)
     }
     fclose(f);
 
-    if (vsPreprocessTransforms(td, &tc->trans) != VS_OK ) {
+    if (vsPreprocessTransforms(td, &tc->trans) != VS_OK) {
         av_log(ctx, AV_LOG_ERROR, "error while preprocessing transforms\n");
         return AVERROR(EINVAL);
     }



More information about the ffmpeg-cvslog mailing list