OSDN Git Service

Add informative log message in the crop filter.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 23 Nov 2010 21:08:22 +0000 (21:08 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Tue, 23 Nov 2010 21:08:22 +0000 (21:08 +0000)
Originally committed as revision 25817 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/vf_crop.c

index 4e793c9..61019ef 100644 (file)
@@ -200,6 +200,9 @@ static int config_input(AVFilterLink *link)
                              NULL, NULL, NULL, NULL, 0, ctx)) < 0)
         return AVERROR(EINVAL);
 
+    av_log(ctx, AV_LOG_INFO, "w:%d h:%d -> w:%d h:%d\n",
+           link->w, link->h, crop->w, crop->h, crop->x, crop->y);
+
     if (crop->w <= 0 || crop->h <= 0 ||
         crop->w > link->w || crop->h > link->h) {
         av_log(ctx, AV_LOG_ERROR,