mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-21 08:45:06 +02:00
Add informative log message in the crop filter.
Originally committed as revision 25817 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
782f69e8a5
commit
16d14d641c
@ -200,6 +200,9 @@ static int config_input(AVFilterLink *link)
|
|||||||
NULL, NULL, NULL, NULL, 0, ctx)) < 0)
|
NULL, NULL, NULL, NULL, 0, ctx)) < 0)
|
||||||
return AVERROR(EINVAL);
|
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 ||
|
if (crop->w <= 0 || crop->h <= 0 ||
|
||||||
crop->w > link->w || crop->h > link->h) {
|
crop->w > link->w || crop->h > link->h) {
|
||||||
av_log(ctx, AV_LOG_ERROR,
|
av_log(ctx, AV_LOG_ERROR,
|
||||||
|
Loading…
Reference in New Issue
Block a user