Revision 36ad2b3e libavcodec/vaapi_mpeg2.c

View differences:

libavcodec/vaapi_mpeg2.c
73 73

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

  

Also available in: Unified diff