aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_deshake.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-04 01:30:14 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2020-04-04 23:21:14 +0200
commit61dcaf5fb74d11209683da1a98aa324df54147ed (patch)
treed1532c9dea0dda220f4df4a3c70cea67dabbd327 /libavfilter/vf_deshake.c
parente61767c40a978f0d1c41c848c134d537b5494cb3 (diff)
downloadffmpeg-61dcaf5fb74d11209683da1a98aa324df54147ed.tar.gz
lavf, lavfi: Remove uses of sizeof(char).
The C standard requires sizeof(char) == 1.
Diffstat (limited to 'libavfilter/vf_deshake.c')
-rw-r--r--libavfilter/vf_deshake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_deshake.c b/libavfilter/vf_deshake.c
index b516ea2d59..28a541b94a 100644
--- a/libavfilter/vf_deshake.c
+++ b/libavfilter/vf_deshake.c
@@ -354,7 +354,7 @@ static av_cold int init(AVFilterContext *ctx)
if (deshake->filename)
deshake->fp = fopen(deshake->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);
+ 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", 1, 104, deshake->fp);
// Quadword align left edge of box for MMX code, adjust width if necessary
// to keep right margin
@@ -485,7 +485,7 @@ static int filter_frame(AVFilterLink *link, AVFrame *in)
// Write statistics to file
if (deshake->fp) {
snprintf(tmp, 256, "%f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f\n", orig.vec.x, deshake->avg.vec.x, t.vec.x, orig.vec.y, deshake->avg.vec.y, t.vec.y, orig.angle, deshake->avg.angle, t.angle, orig.zoom, deshake->avg.zoom, t.zoom);
- fwrite(tmp, sizeof(char), strlen(tmp), deshake->fp);
+ fwrite(tmp, 1, strlen(tmp), deshake->fp);
}
// Turn relative current frame motion into absolute by adding it to the