Revision b5049814

View differences:

libavfilter/graphparser.c
81 81

  
82 82
    AVFilter *filt;
83 83
    char inst_name[30];
84
    char tmp_args[256];
84 85

  
85 86
    snprintf(inst_name, sizeof(inst_name), "Filter %d %s", index, filt_name);
86 87

  
......
104 105
        return NULL;
105 106
    }
106 107

  
108
    if (!strcmp(filt_name, "scale") && !strstr(args, "flags")) {
109
        snprintf(tmp_args, sizeof(tmp_args), "%s:%s",
110
                 args, ctx->scale_sws_opts);
111
        args = tmp_args;
112
    }
113

  
107 114
    if(avfilter_init_filter(filt_ctx, args, NULL)) {
108 115
        av_log(log_ctx, AV_LOG_ERROR,
109 116
               "error initializing filter '%s' with args '%s'\n", filt_name, args);

Also available in: Unified diff