intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
969 stars 345 forks source link

[Bug]: build error in Ubuntu 24.04 #1791

Closed xhaihao closed 5 months ago

xhaihao commented 5 months ago

Which component impacted?

Build

Is it regression? Good in old configuration?

None

What happened?

Follow https://github.com/intel/media-driver?tab=readme-ov-file#building to build media driver in Ubuntu 24.04 and I got the error below:

/home/aaa/media-driver/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp: In member function ‘MOS_STATUS decode::AvcDecodePicPktXe_M_Base::DumpResources(MHW_VDBOX_AVC_DIRECTMODE_PARAMS&, uint32_t)’:

/home/aaa/media-driver/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp:592:65: error: comparing the result of pointer addition ‘(avcDirectmodeParams._MHW_VDBOX_AVC_DIRECTMODE_PARAMS::presAvcDmvBuffers + ((((sizetype)n) + 1) * 328))’ and NULL [-Werror=address] 592 | if (&avcDirectmodeParams.presAvcDmvBuffers[n+1] != nullptr) | ~~~~~~~~~~^~~~

What's the usage scenario when you are seeing the problem?

Others

What impacted?

No response

Debug Information

No response

Do you want to contribute a patch to fix the issue?

None

Jexu commented 5 months ago

@xhaihao Could you help verify the fix

intel-mediadev commented 5 months ago

Auto Created VSMGWL-73053 for further analysis.