/* Mark a picture as no longer needed for reference. The refmask argument allows unreferencing of individual fields or the whole frame. If the picture becomes entirely unreferenced, but is being held for display purposes, it is marked as such.  */
static int unreference_pic(H264Context *h, Picture *pic, int refmask)
/* Mark a picture as no longer needed for reference. The refmask argument allows unreferencing of individual fields or the whole frame. If the picture becomes entirely unreferenced, but is being held for display purposes, it is marked as such.  */
static int unreference_pic(H264Context *h, Picture *pic, int refmask)
{
        return 0;
    } else {
        for(i = 0; h->delayed_pic[i]; i++)
            if(pic == h->delayed_pic[i]){
                pic->reference=DELAYED_PIC_REF;
                break;
            }
        return 1;
    }
}