Showing the changes to libavfilter/avfiltergraph.c (1 of 1 file). Show all
Unified · Split
| @@ -195,8 +195,11 @@ static int filter_query_formats(AVFilterContext *ctx) · 194 unmodified lines | ||
| 195 | 195 | ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type : |
| 196 | 196 | AVMEDIA_TYPE_VIDEO; |
| 197 | 197 | |
| 198 | − if ((ret = ctx->filter->query_formats(ctx)) < 0) | |
| 198 | + if ((ret = ctx->filter->query_formats(ctx)) < 0) { | |
| 199 | + av_log(ctx, AV_LOG_ERROR, "Query format failed for '%s': %s\n", | |
| 200 | + ctx->name, av_err2str(ret)); | |
| 199 | 201 | return ret; |
| 202 | + } | |
| 200 | 203 | |
| 201 | 204 | formats = ff_all_formats(type); |
| 202 | 205 | if (!formats) |