summaryrefslogtreecommitdiff
path: root/libavfilter/vf_crop.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-23 21:08:22 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-11-23 21:08:22 +0000
commit16d14d641c7b11638ce10562243caeaf8bfcadb2 (patch)
tree4dc78f783efb341f319a0a460a3af084e067783e /libavfilter/vf_crop.c
parent782f69e8a583168f5018529fbd0f6ee3903df81f (diff)
Add informative log message in the crop filter.
Originally committed as revision 25817 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/vf_crop.c')
-rw-r--r--libavfilter/vf_crop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index 4e793c9a32..61019ef80e 100644
--- a/libavfilter/vf_crop.c
+++ b/libavfilter/vf_crop.c
@@ -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,