[FFmpeg-cvslog] deshake: simplify filename check.

Clément Bœsch git at videolan.org
Tue Oct 4 21:39:36 CEST 2011


ffmpeg | branch: master | Clément Bœsch <ubitux at gmail.com> | Tue Oct  4 21:36:30 2011 +0200| [073effb6e4f18dab4784995c9acb61e34c851f8a] | committer: Clément Bœsch

deshake: simplify filename check.

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

 libavfilter/vf_deshake.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index 02e4cba..6128cb9 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -356,7 +356,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
         deshake->contrast = av_clip(deshake->contrast, 1, 255);
         deshake->search = av_clip(deshake->search, EXHAUSTIVE, SEARCH_COUNT - 1);
     }
-    if (strlen(filename))
+    if (*filename)
         deshake->fp = fopen(filename, "w");
     if (deshake->fp)
         fwrite("Ori x, Avg x, Fin x, Ori y, Avg y, Fin y, Ori angle, Avg angle, Fin angle, Ori zoom, Avg zoom, Fin zoom\n", sizeof(char), 104, deshake->fp);



More information about the ffmpeg-cvslog mailing list