[FFmpeg-devel] [PATCH] lavfi/avfiltergraph: print query_formats errors.
Nicolas George
nicolas.george at normalesup.org
Mon Dec 31 16:46:49 CET 2012
Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
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)
--
1.7.10.4
More information about the ffmpeg-devel
mailing list