[FFmpeg-cvslog] lavfi/avfiltergraph: print query_formats errors.

Nicolas George git at videolan.org
Mon Dec 31 19:09:45 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Mon Dec 31 14:40:33 2012 +0100| [11ab2c25b6b21cdec1c1d1affc88f3a045a4e28e] | committer: Nicolas George

lavfi/avfiltergraph: print query_formats errors.

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

 libavfilter/avfiltergraph.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c
index bd772a8..f144624 100644
--- a/libavfilter/avfiltergraph.c
+++ b/libavfilter/avfiltergraph.c
@@ -195,8 +195,11 @@ static int filter_query_formats(AVFilterContext *ctx)
                             ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
                             AVMEDIA_TYPE_VIDEO;
 
-    if ((ret = ctx->filter->query_formats(ctx)) < 0)
+    if ((ret = ctx->filter->query_formats(ctx)) < 0) {
+        av_log(ctx, AV_LOG_ERROR, "Query format failed for '%s': %s\n",
+               ctx->name, av_err2str(ret));
         return ret;
+    }
 
     formats = ff_all_formats(type);
     if (!formats)



More information about the ffmpeg-cvslog mailing list