]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_deshake.c
Merge commit 'c25fc5c2bb6ae8c93541c9427df3e47206d95152'
[ffmpeg] / libavfilter / vf_deshake.c
index 68d72673ae96655a9d23012c9737e0e6cb62491d..236c0d494fbccd60b83ba6e3e2a2f1ba9a0f8977 100644 (file)
@@ -528,11 +528,11 @@ static int filter_frame(AVFilterLink *link, AVFilterBufferRef *in)
     avfilter_transform(in->data[1], out->data[1], in->linesize[1], out->linesize[1], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), matrix, INTERPOLATE_BILINEAR, deshake->edge);
     avfilter_transform(in->data[2], out->data[2], in->linesize[2], out->linesize[2], CHROMA_WIDTH(link), CHROMA_HEIGHT(link), matrix, INTERPOLATE_BILINEAR, deshake->edge);
 
-    // Store the current frame as the reference frame for calculating the
-    // motion of the next frame
+    // Cleanup the old reference frame
     avfilter_unref_buffer(deshake->ref);
 
-    // Cleanup the old reference frame
+    // Store the current frame as the reference frame for calculating the
+    // motion of the next frame
     deshake->ref = in;
 
     return ff_filter_frame(outlink, out);
@@ -558,13 +558,11 @@ static const AVFilterPad deshake_outputs[] = {
 };
 
 AVFilter avfilter_vf_deshake = {
-    .name      = "deshake",
-    .description = NULL_IF_CONFIG_SMALL("Stabilize shaky video."),
-
-    .priv_size = sizeof(DeshakeContext),
-
-    .init = init,
-    .uninit = uninit,
+    .name          = "deshake",
+    .description   = NULL_IF_CONFIG_SMALL("Stabilize shaky video."),
+    .priv_size     = sizeof(DeshakeContext),
+    .init          = init,
+    .uninit        = uninit,
     .query_formats = query_formats,
     .inputs        = deshake_inputs,
     .outputs       = deshake_outputs,