diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-12-31 14:40:33 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-12-31 18:43:04 +0100 |
commit | 11ab2c25b6b21cdec1c1d1affc88f3a045a4e28e (patch) | |
tree | 64d7d5871a3d162302f6ec0c83137c9541df30a8 | |
parent | 5f12d5ad78f72391cb8656e8ab0b5e33beb739f8 (diff) | |
download | ffmpeg-11ab2c25b6b21cdec1c1d1affc88f3a045a4e28e.tar.gz |
lavfi/avfiltergraph: print query_formats errors.
-rw-r--r-- | libavfilter/avfiltergraph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/avfiltergraph.c b/libavfilter/avfiltergraph.c index bd772a87d2..f144624256 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) |