From d9f26a0d71e3f726cb7a764fa274aa84441a2ddb Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Sat, 17 Mar 2012 12:28:09 +0100 Subject: [PATCH] lavfi/crop: show input and output sample aspect ratio in the log --- libavfilter/vf_crop.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index c8c4fb24ad..5015c74dc7 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -221,8 +221,9 @@ static int config_input(AVFilterLink *link) } else crop->out_sar = link->sample_aspect_ratio; - av_log(ctx, AV_LOG_INFO, "w:%d h:%d -> w:%d h:%d\n", - link->w, link->h, crop->w, crop->h); + av_log(ctx, AV_LOG_INFO, "w:%d h:%d sar:%d/%d -> w:%d h:%d sar:%d/%d\n", + link->w, link->h, link->sample_aspect_ratio.num, link->sample_aspect_ratio.den, + crop->w, crop->h, crop->out_sar.num, crop->out_sar.den); if (crop->w <= 0 || crop->h <= 0 || crop->w > link->w || crop->h > link->h) {