diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-02 01:41:28 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-02 16:46:15 +0200 |
commit | 0f1ef8a316470977ae092635ada2720d8ed50c4e (patch) | |
tree | 3ab10f16dbd27068f560526378fdce982255a8bd | |
parent | ce5e49b0c2c11ec153834677fc5c903dd71d4e6e (diff) | |
download | ffmpeg-0f1ef8a316470977ae092635ada2720d8ed50c4e.tar.gz |
vsrc_buffer: improve reporting in case of format/size change
-rw-r--r-- | libavfilter/vsrc_buffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c index 906cb5dca7..ea63f7d0d2 100644 --- a/libavfilter/vsrc_buffer.c +++ b/libavfilter/vsrc_buffer.c @@ -62,8 +62,10 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFrame *frame, AVFilterContext *scale= buffer_filter->outputs[0]->dst; AVFilterLink *link; - av_log(buffer_filter, AV_LOG_INFO, "Changing filter graph input to accept %dx%d %d (%d %d)\n", - width,height,pix_fmt, c->pix_fmt, scale && scale->outputs ? scale->outputs[0]->format : -123); + av_log(buffer_filter, AV_LOG_INFO, + "Buffer video input changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s\n", + c->w, c->h, av_pix_fmt_descriptors[c->pix_fmt].name, + width, height, av_pix_fmt_descriptors[pix_fmt].name); if(!scale || strcmp(scale->filter->name,"scale")){ AVFilter *f= avfilter_get_by_name("scale"); |