lavfi/avfiltergraph: print query_formats errors.
authorNicolas George <nicolas.george@normalesup.org>
Mon, 31 Dec 2012 13:40:33 +0000 (14:40 +0100)
committerNicolas George <nicolas.george@normalesup.org>
Mon, 31 Dec 2012 17:43:04 +0000 (18:43 +0100)
libavfilter/avfiltergraph.c

index bd772a8..f144624 100644 (file)
@@ -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)