Revision ce5e49b0 libavcodec/vdpau.c

View differences:

libavcodec/vdpau.c
225 225
    render->info.mpeg.backward_reference         = VDP_INVALID_HANDLE;
226 226

  
227 227
    switch(s->pict_type){
228
    case  FF_B_TYPE:
228
    case  AV_PICTURE_TYPE_B:
229 229
        next = (struct vdpau_render_state *)s->next_picture.data[0];
230 230
        assert(next);
231 231
        render->info.mpeg.backward_reference     = next->surface;
232 232
        // no return here, going to set forward prediction
233
    case  FF_P_TYPE:
233
    case  AV_PICTURE_TYPE_P:
234 234
        last = (struct vdpau_render_state *)s->last_picture.data[0];
235 235
        if (!last) // FIXME: Does this test make sense?
236 236
            last = render; // predict second field from the first
......
295 295
        render->info.vc1.picture_type = s->pict_type - 1 + s->pict_type / 3;
296 296

  
297 297
    switch(s->pict_type){
298
    case  FF_B_TYPE:
298
    case  AV_PICTURE_TYPE_B:
299 299
        next = (struct vdpau_render_state *)s->next_picture.data[0];
300 300
        assert(next);
301 301
        render->info.vc1.backward_reference = next->surface;
302 302
        // no break here, going to set forward prediction
303
    case  FF_P_TYPE:
303
    case  AV_PICTURE_TYPE_P:
304 304
        last = (struct vdpau_render_state *)s->last_picture.data[0];
305 305
        if (!last) // FIXME: Does this test make sense?
306 306
            last = render; // predict second field from the first
......
351 351
    render->info.mpeg4.backward_reference                = VDP_INVALID_HANDLE;
352 352

  
353 353
    switch (s->pict_type) {
354
    case FF_B_TYPE:
354
    case AV_PICTURE_TYPE_B:
355 355
        next = (struct vdpau_render_state *)s->next_picture.data[0];
356 356
        assert(next);
357 357
        render->info.mpeg4.backward_reference     = next->surface;
358 358
        render->info.mpeg4.vop_coding_type        = 2;
359 359
        // no break here, going to set forward prediction
360
    case FF_P_TYPE:
360
    case AV_PICTURE_TYPE_P:
361 361
        last = (struct vdpau_render_state *)s->last_picture.data[0];
362 362
        assert(last);
363 363
        render->info.mpeg4.forward_reference      = last->surface;

Also available in: Unified diff