[FFmpeg-cvslog] vsrc_buffer: during init, print information about timebase and sample aspect ratio

Stefano Sabatini git at videolan.org
Sat May 7 13:20:37 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Sat May  7 12:44:18 2011 +0200| [ea7f73c52ea82b792568127ee7e7671c2640bbcd] | committer: Stefano Sabatini

vsrc_buffer: during init, print information about timebase and sample aspect ratio

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

 libavfilter/vsrc_buffer.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index 9a94d44..84f3b33 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -133,7 +133,10 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
         }
     }
 
-    av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s\n", c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name);
+    av_log(ctx, AV_LOG_INFO, "w:%d h:%d pixfmt:%s tb:%d/%d sar:%d/%d\n",
+           c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name,
+           c->time_base.num, c->time_base.den,
+           c->sample_aspect_ratio.num, c->sample_aspect_ratio.den);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list