1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-02 17:29:58 +02:00

deshake: simplify filename check.

This commit is contained in:
Clément Bœsch 2011-10-04 21:36:30 +02:00
parent e39be59b85
commit 073effb6e4

View File

@ -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->contrast = av_clip(deshake->contrast, 1, 255);
deshake->search = av_clip(deshake->search, EXHAUSTIVE, SEARCH_COUNT - 1); deshake->search = av_clip(deshake->search, EXHAUSTIVE, SEARCH_COUNT - 1);
} }
if (strlen(filename)) if (*filename)
deshake->fp = fopen(filename, "w"); deshake->fp = fopen(filename, "w");
if (deshake->fp) 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); 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);