Revision ce5e49b0 libavcodec/vaapi_mpeg2.c

View differences:

libavcodec/vaapi_mpeg2.c
72 72
    pic_param->picture_coding_extension.bits.is_first_field     = mpeg2_get_is_frame_start(s);
73 73

  
74 74
    switch (s->pict_type) {
75
    case FF_B_TYPE:
75
    case AV_PICTURE_TYPE_B:
76 76
        pic_param->backward_reference_picture = ff_vaapi_get_surface_id(&s->next_picture);
77 77
        // fall-through
78
    case FF_P_TYPE:
78
    case AV_PICTURE_TYPE_P:
79 79
        pic_param->forward_reference_picture = ff_vaapi_get_surface_id(&s->last_picture);
80 80
        break;
81 81
    }

Also available in: Unified diff