Revision e6d3534f

View differences:

libavcodec/vaapi_mpeg2.c
54 54
        return -1;
55 55
    pic_param->horizontal_size                                  = s->width;
56 56
    pic_param->vertical_size                                    = s->height;
57
    pic_param->forward_reference_picture                        = 0xffffffff;
58
    pic_param->backward_reference_picture                       = 0xffffffff;
57
    pic_param->forward_reference_picture                        = VA_INVALID_ID;
58
    pic_param->backward_reference_picture                       = VA_INVALID_ID;
59 59
    pic_param->picture_coding_type                              = s->pict_type;
60 60
    pic_param->f_code                                           = mpeg2_get_f_code(s);
61 61
    pic_param->picture_coding_extension.value                   = 0; /* reset all bits */
libavcodec/vaapi_mpeg4.c
56 56
        return -1;
57 57
    pic_param->vop_width                                = s->width;
58 58
    pic_param->vop_height                               = s->height;
59
    pic_param->forward_reference_picture                = 0xffffffff;
60
    pic_param->backward_reference_picture               = 0xffffffff;
59
    pic_param->forward_reference_picture                = VA_INVALID_ID;
60
    pic_param->backward_reference_picture               = VA_INVALID_ID;
61 61
    pic_param->vol_fields.value                         = 0; /* reset all bits */
62 62
    pic_param->vol_fields.bits.short_video_header       = avctx->codec->id == CODEC_ID_H263;
63 63
    pic_param->vol_fields.bits.chroma_format            = CHROMA_420;
libavcodec/vaapi_vc1.c
145 145
    pic_param = ff_vaapi_alloc_pic_param(vactx, sizeof(VAPictureParameterBufferVC1));
146 146
    if (!pic_param)
147 147
        return -1;
148
    pic_param->forward_reference_picture                            = 0xffffffff;
149
    pic_param->backward_reference_picture                           = 0xffffffff;
150
    pic_param->inloop_decoded_picture                               = 0xffffffff;
148
    pic_param->forward_reference_picture                            = VA_INVALID_ID;
149
    pic_param->backward_reference_picture                           = VA_INVALID_ID;
150
    pic_param->inloop_decoded_picture                               = VA_INVALID_ID;
151 151
    pic_param->sequence_fields.value                                = 0; /* reset all bits */
152 152
    pic_param->sequence_fields.bits.pulldown                        = v->broadcast;
153 153
    pic_param->sequence_fields.bits.interlace                       = v->interlace;

Also available in: Unified diff