Revision 2bc05d35 libavfilter/vf_crop.c

View differences:

libavfilter/vf_crop.c
73 73
    CropContext *crop = ctx->priv;
74 74

  
75 75
    if (args)
76
        sscanf(args, "%d:%d:%d:%d", &crop->x, &crop->y, &crop->w, &crop->h);
76
        sscanf(args, "%d:%d:%d:%d", &crop->w, &crop->h, &crop->x, &crop->y);
77 77

  
78 78
    return 0;
79 79
}
......
96 96
    crop->x &= ~((1 << crop->hsub) - 1);
97 97
    crop->y &= ~((1 << crop->vsub) - 1);
98 98

  
99
    av_log(link->dst, AV_LOG_INFO, "x:%d y:%d w:%d h:%d\n",
100
           crop->x, crop->y, crop->w, crop->h);
99
    av_log(link->dst, AV_LOG_INFO, "w:%d h:%d x:%d y:%d\n",
100
           crop->w, crop->h, crop->x, crop->y);
101 101

  
102 102
    if (crop->x <  0 || crop->y <  0                    ||
103 103
        crop->w <= 0 || crop->h <= 0                    ||
......
172 172

  
173 173
AVFilter avfilter_vf_crop = {
174 174
    .name      = "crop",
175
    .description = NULL_IF_CONFIG_SMALL("Crop the input video to x:y:width:height."),
175
    .description = NULL_IF_CONFIG_SMALL("Crop the input video to width:height:x:y."),
176 176

  
177 177
    .priv_size = sizeof(CropContext),
178 178

  

Also available in: Unified diff