Ticket #457: vaapi_h264_fix.patch

File vaapi_h264_fix.patch, 744 bytes (added by gimli, 5 years ago)

vaapi h264 decoding fix

  • libavcodec/vaapi_h264.c

    old new  
    282282    if (!iq_matrix) 
    283283        return -1; 
    284284    memcpy(iq_matrix->ScalingList4x4, h->pps.scaling_matrix4, sizeof(iq_matrix->ScalingList4x4)); 
    285     memcpy(iq_matrix->ScalingList8x8, h->pps.scaling_matrix8, sizeof(iq_matrix->ScalingList8x8)); 
     285    //memcpy(iq_matrix->ScalingList8x8, h->pps.scaling_matrix8, sizeof(iq_matrix->ScalingList8x8)); 
     286    memcpy(iq_matrix->ScalingList8x8[0], h->pps.scaling_matrix8[0], sizeof(iq_matrix->ScalingList8x8[0])); 
     287    memcpy(iq_matrix->ScalingList8x8[1], h->pps.scaling_matrix8[3], sizeof(iq_matrix->ScalingList8x8[0])); 
    286288    return 0; 
    287289} 
    288290