[FFmpeg-devel] [PATCH] vsrc_buffer: improve reporting in case of format/size change

Stefano Sabatini stefano.sabatini-lala at poste.it
Mon May 2 02:18:31 CEST 2011


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

diff --git a/libavfilter/vsrc_buffer.c b/libavfilter/vsrc_buffer.c
index fe6b4e1..3c5ff7f 100644
--- a/libavfilter/vsrc_buffer.c
+++ b/libavfilter/vsrc_buffer.c
@@ -60,9 +60,10 @@ int av_vsrc_buffer_add_frame2(AVFilterContext *buffer_filter, AVFilterBufferRef
         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",
-               picref->video->w, picref->video->h, picref->format,
-               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,
+               picref->video->w, picref->video->h, av_pix_fmt_descriptors[picref->format].name);
 
         if(!scale || strcmp(scale->filter->name,"scale")){
             AVFilter *f= avfilter_get_by_name("scale");
-- 
1.7.2.3



More information about the ffmpeg-devel mailing list