Revision 0c32e19d libavcodec/vaapi_h264.c

View differences:

libavcodec/vaapi_h264.c
317 317
    slice_param->cabac_init_idc                 = h->cabac_init_idc;
318 318
    slice_param->slice_qp_delta                 = s->qscale - h->pps.init_qp;
319 319
    slice_param->disable_deblocking_filter_idc  = h->deblocking_filter < 2 ? !h->deblocking_filter : h->deblocking_filter;
320
    slice_param->slice_alpha_c0_offset_div2     = h->slice_alpha_c0_offset / 2;
321
    slice_param->slice_beta_offset_div2         = h->slice_beta_offset / 2;
320
    slice_param->slice_alpha_c0_offset_div2     = h->slice_alpha_c0_offset / 2 - 26;
321
    slice_param->slice_beta_offset_div2         = h->slice_beta_offset     / 2 - 26;
322 322
    slice_param->luma_log2_weight_denom         = h->luma_log2_weight_denom;
323 323
    slice_param->chroma_log2_weight_denom       = h->chroma_log2_weight_denom;
324 324

  

Also available in: Unified diff