diff options
author | Clément Bœsch <ubitux@gmail.com> | 2011-10-04 21:36:30 +0200 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2011-10-04 21:36:54 +0200 |
commit | 073effb6e4f18dab4784995c9acb61e34c851f8a (patch) | |
tree | 5137f22cb8caf148686338ecd6250f843fd68c48 | |
parent | e39be59b85de63e036bd6db9b79a9a9f29a838f7 (diff) | |
download | ffmpeg-073effb6e4f18dab4784995c9acb61e34c851f8a.tar.gz |
deshake: simplify filename check.
-rw-r--r-- | 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 02e4cba76f..6128cb9b60 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); |