Revision 48f7f29f

View differences:

libavfilter/vf_yadif.c
197 197
    yadif->cur  = yadif->next;
198 198
    yadif->next = picref;
199 199

  
200
    if (!yadif->prev)
201
        yadif->prev = avfilter_get_video_buffer(link, AV_PERM_WRITE | AV_PERM_PRESERVE |
202
                                                AV_PERM_REUSE, link->w, link->h);
203

  
204 200
    if(!yadif->cur)
205 201
        return;
206 202

  
203
    if (!yadif->prev)
204
        yadif->prev = avfilter_ref_buffer(yadif->cur, AV_PERM_READ);
205

  
207 206
    yadif->out = avfilter_get_video_buffer(ctx->outputs[0], AV_PERM_WRITE | AV_PERM_PRESERVE |
208 207
                                       AV_PERM_REUSE, link->w, link->h);
209 208

  

Also available in: Unified diff