]> git.sesse.net Git - ffmpeg/commitdiff
lavfi/crop: show input and output sample aspect ratio in the log
authorStefano Sabatini <stefasab@gmail.com>
Sat, 17 Mar 2012 11:28:09 +0000 (12:28 +0100)
committerStefano Sabatini <stefasab@gmail.com>
Sat, 17 Mar 2012 11:34:34 +0000 (12:34 +0100)
libavfilter/vf_crop.c

index c8c4fb24ade6c1006795933c111a62d95f25b91b..5015c74dc7ff099665c0afeafa90789fa4dcec41 100644 (file)
@@ -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) {