Revision e93d3334

View differences:

libavfilter/vf_scale.c
158 158
    var_values[VAR_OUT_W] = var_values[VAR_OW] = NAN;
159 159
    var_values[VAR_OUT_H] = var_values[VAR_OH] = NAN;
160 160
    var_values[VAR_A]     = (float) inlink->w / inlink->h;
161
    var_values[VAR_HSUB]  = 2<<av_pix_fmt_descriptors[inlink->format].log2_chroma_w;
162
    var_values[VAR_VSUB]  = 2<<av_pix_fmt_descriptors[inlink->format].log2_chroma_h;
161
    var_values[VAR_HSUB]  = 1<<av_pix_fmt_descriptors[inlink->format].log2_chroma_w;
162
    var_values[VAR_VSUB]  = 1<<av_pix_fmt_descriptors[inlink->format].log2_chroma_h;
163 163

  
164 164
    /* evaluate width and height */
165 165
    av_expr_parse_and_eval(&res, (expr = scale->w_expr),

Also available in: Unified diff