]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/vf_crop.c
Print error messages on errors.
[ffmpeg] / libavfilter / vf_crop.c
index 0dbdedf16970d5429777ba851906b45a1da6879a..e3944ef059ad41758f50ad4960e6e44a135d41f8 100644 (file)
@@ -195,7 +195,7 @@ static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
     avfilter_start_frame(link->dst->outputs[0], ref2);
 }
 
-static void draw_slice(AVFilterLink *link, int y, int h)
+static void draw_slice(AVFilterLink *link, int y, int h, int slice_dir)
 {
     AVFilterContext *ctx = link->dst;
     CropContext *crop = ctx->priv;
@@ -210,7 +210,7 @@ static void draw_slice(AVFilterLink *link, int y, int h)
     if (y + h > crop->y + crop->h)
         h = crop->y + crop->h - y;
 
-    avfilter_draw_slice(ctx->outputs[0], y - crop->y, h);
+    avfilter_draw_slice(ctx->outputs[0], y - crop->y, h, slice_dir);
 }
 
 AVFilter avfilter_vf_crop = {