Revision 5d4890d7 libavfilter/vf_scale.c

View differences:

libavfilter/vf_scale.c
154 154
    outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
155 155
    avfilter_copy_buffer_ref_props(outpicref, picref);
156 156

  
157
    outlink->outpic = outpicref;
157
    outlink->out_buf = outpicref;
158 158

  
159 159
    av_reduce(&outpicref->pixel_aspect.num, &outpicref->pixel_aspect.den,
160 160
              (int64_t)picref->pixel_aspect.num * outlink->h * link->w,
......
169 169
{
170 170
    ScaleContext *scale = link->dst->priv;
171 171
    int out_h;
172
    AVFilterBufferRef *cur_pic = link->cur_pic;
172
    AVFilterBufferRef *cur_pic = link->cur_buf;
173 173
    const uint8_t *data[4];
174 174

  
175 175
    if (scale->slice_y == 0 && slice_dir == -1)
......
183 183
    data[3] = cur_pic->data[3] +  y               * cur_pic->linesize[3];
184 184

  
185 185
    out_h = sws_scale(scale->sws, data, cur_pic->linesize, y, h,
186
                      link->dst->outputs[0]->outpic->data,
187
                      link->dst->outputs[0]->outpic->linesize);
186
                      link->dst->outputs[0]->out_buf->data,
187
                      link->dst->outputs[0]->out_buf->linesize);
188 188

  
189 189
    if (slice_dir == -1)
190 190
        scale->slice_y -= out_h;

Also available in: Unified diff