Revision 12011922

View differences:

libavfilter/defaults.c
282 282

  
283 283
int avfilter_default_query_formats(AVFilterContext *ctx)
284 284
{
285
    enum AVMediaType type = ctx->inputs [0] ? ctx->inputs [0]->type :
286
                            ctx->outputs[0] ? ctx->outputs[0]->type :
285
    enum AVMediaType type = ctx->inputs  && ctx->inputs [0] ? ctx->inputs [0]->type :
286
                            ctx->outputs && ctx->outputs[0] ? ctx->outputs[0]->type :
287 287
                            AVMEDIA_TYPE_VIDEO;
288 288

  
289 289
    avfilter_set_common_formats(ctx, avfilter_all_formats(type));

Also available in: Unified diff