[FFmpeg-cvslog] lavfi/crop: show input and output sample aspect ratio in the log

Stefano Sabatini git at videolan.org
Sat Mar 17 12:36:21 CET 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Sat Mar 17 12:28:09 2012 +0100| [d9f26a0d71e3f726cb7a764fa274aa84441a2ddb] | committer: Stefano Sabatini

lavfi/crop: show input and output sample aspect ratio in the log

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d9f26a0d71e3f726cb7a764fa274aa84441a2ddb
---

 libavfilter/vf_crop.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c
index c8c4fb2..5015c74 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) {



More information about the ffmpeg-cvslog mailing list