Revision ce5e49b0 libavcodec/mpegvideo_xvmc.c

View differences:

libavcodec/mpegvideo_xvmc.c
110 110
    render->p_past_surface    = NULL;
111 111

  
112 112
    switch(s->pict_type) {
113
        case  FF_I_TYPE:
113
        case  AV_PICTURE_TYPE_I:
114 114
            return 0; // no prediction from other frames
115
        case  FF_B_TYPE:
115
        case  AV_PICTURE_TYPE_B:
116 116
            next = (struct xvmc_pix_fmt*)s->next_picture.data[2];
117 117
            if (!next)
118 118
                return -1;
......
120 120
                return -1;
121 121
            render->p_future_surface = next->p_surface;
122 122
            // no return here, going to set forward prediction
123
        case  FF_P_TYPE:
123
        case  AV_PICTURE_TYPE_P:
124 124
            last = (struct xvmc_pix_fmt*)s->last_picture.data[2];
125 125
            if (!last)
126 126
                last = render; // predict second field from the first

Also available in: Unified diff