[FFmpeg-cvslog] buffersrc: Improve initialization log message
Vittorio Giovara
git at videolan.org
Wed Sep 16 11:19:26 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Thu Sep 10 17:05:54 2015 +0200| [dc54c78c4d56cdf5549f35ccff2fd66e7ffa0af2] | committer: Vittorio Giovara
buffersrc: Improve initialization log message
Add timebase and aspect ratio information.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc54c78c4d56cdf5549f35ccff2fd66e7ffa0af2
---
libavfilter/buffersrc.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavfilter/buffersrc.c b/libavfilter/buffersrc.c
index 651f2ec..a9b893c 100644
--- a/libavfilter/buffersrc.c
+++ b/libavfilter/buffersrc.c
@@ -166,7 +166,10 @@ static av_cold int init_video(AVFilterContext *ctx)
if (!(c->fifo = av_fifo_alloc(sizeof(AVFrame*))))
return AVERROR(ENOMEM);
- av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s\n", c->w, c->h, av_get_pix_fmt_name(c->pix_fmt));
+ av_log(ctx, AV_LOG_VERBOSE, "w:%d h:%d pixfmt:%s tb:%d/%d sar:%d/%d\n",
+ c->w, c->h, av_get_pix_fmt_name(c->pix_fmt),
+ c->time_base.num, c->time_base.den,
+ c->pixel_aspect.num, c->pixel_aspect.den);
return 0;
}
More information about the ffmpeg-cvslog
mailing list