Revision 35fe66ab libavfilter/vf_scale.c

View differences:

libavfilter/vf_scale.c
252 252

  
253 253
    outlink->out_buf = outpicref;
254 254

  
255
    av_reduce(&outpicref->video->pixel_aspect.num, &outpicref->video->pixel_aspect.den,
256
              (int64_t)picref->video->pixel_aspect.num * outlink->h * link->w,
257
              (int64_t)picref->video->pixel_aspect.den * outlink->w * link->h,
255
    av_reduce(&outpicref->video->sample_aspect_ratio.num, &outpicref->video->sample_aspect_ratio.den,
256
              (int64_t)picref->video->sample_aspect_ratio.num * outlink->h * link->w,
257
              (int64_t)picref->video->sample_aspect_ratio.den * outlink->w * link->h,
258 258
              INT_MAX);
259 259

  
260 260
    scale->slice_y = 0;

Also available in: Unified diff