Revision 7fce481a ffplay.c

View differences:

ffplay.c
1304 1304

  
1305 1305
#if CONFIG_AVFILTER
1306 1306
    if (vp->picref)
1307
        avfilter_unref_pic(vp->picref);
1307
        avfilter_unref_buffer(vp->picref);
1308 1308
    vp->picref = NULL;
1309 1309

  
1310 1310
    vp->width   = is->out_video_filter->inputs[0]->w;
......
1389 1389
        AVPicture pict;
1390 1390
#if CONFIG_AVFILTER
1391 1391
        if(vp->picref)
1392
            avfilter_unref_pic(vp->picref);
1392
            avfilter_unref_buffer(vp->picref);
1393 1393
        vp->picref = src_frame->opaque;
1394 1394
#endif
1395 1395

  
......
1604 1604
static void input_release_buffer(AVCodecContext *codec, AVFrame *pic)
1605 1605
{
1606 1606
    memset(pic->data, 0, sizeof(pic->data));
1607
    avfilter_unref_pic(pic->opaque);
1607
    avfilter_unref_buffer(pic->opaque);
1608 1608
}
1609 1609

  
1610 1610
static int input_reget_buffer(AVCodecContext *codec, AVFrame *pic)
......
1667 1667
        return -1;
1668 1668

  
1669 1669
    if(priv->use_dr1) {
1670
        picref = avfilter_ref_pic(priv->frame->opaque, ~0);
1670
        picref = avfilter_ref_buffer(priv->frame->opaque, ~0);
1671 1671
    } else {
1672 1672
        picref = avfilter_get_video_buffer(link, AV_PERM_WRITE, link->w, link->h);
1673 1673
        av_picture_copy((AVPicture *)&picref->data, (AVPicture *)priv->frame,
......
2672 2672
        vp = &is->pictq[i];
2673 2673
#if CONFIG_AVFILTER
2674 2674
        if (vp->picref) {
2675
            avfilter_unref_pic(vp->picref);
2675
            avfilter_unref_buffer(vp->picref);
2676 2676
            vp->picref = NULL;
2677 2677
        }
2678 2678
#endif

Also available in: Unified diff