Fixed a potential integer overflow issue in the read_ulong_be function
by adding an explicit cast to ULONG before bit shifting. The data[0]
byte was being shifted left 24 bits without proper casting, which could
cause overflow when the byte value is large and the compiler treats it
as a signed char. This ensures proper 32-bit unsigned integer behavior
during the bitwise OR operations.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/9343
Performance issues can occur when a video output sample has a 2D buffer,
because winegstreamer currently outputs only to a linear buffer, which
must then be copied into the 2D buffer. Worse, a linear lock of the 2D
buffer requires the current contents to be copied to a linear buffer,
even when we intend to overwrite it, because MF linear buffers do not
support write-only locking.
--
v5: winegstreamer: Support 2D sample buffer.
mf/tests: Test color convert 2D buffers.
mf/tests: Test WMV decoder 2D buffers.
mf/tests: Test H.264 decoder 2D buffers.
mf/tests: Test sample copier 2D buffers.
mfplat/tests: Test NV12 negative stride in MFCreateMediaBufferFromMediaType().
mf/tests: Remove todo for an H.264 decoder test.
mf/tests: Stop checking samples at the end of the expected array.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8812
Performance issues can occur when a video output sample has a 2D buffer,
because winegstreamer currently outputs only to a linear buffer, which
must then be copied into the 2D buffer. Worse, a linear lock of the 2D
buffer requires the current contents to be copied to a linear buffer,
even when we intend to overwrite it, because MF linear buffers do not
support write-only locking.
--
v4: mf/tests: Test H.264 sink media type height alignment.
winegstreamer: Support 2D sample buffer.
mf: Test color convert 2D buffers.
mf: Test WMV decoder 2D buffers.
mf: Test H.264 decoder 2D buffers.
mf: Test sample copier 2D buffers.
mfplat/tests: Test NV12 negative stride in MFCreateMediaBufferFromMediaType().
mf/tests: Remove todo for an H.264 decoder test.
mf/tests: Stop checking samples at the end of the expected array.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8812