diff options
author | Piotr Srebrny <piotr.srebrny@qt.io> | 2022-11-09 11:35:30 +0100 |
---|---|---|
committer | Piotr Srebrny <piotr.srebrny@qt.io> | 2022-11-09 12:58:23 +0100 |
commit | c67855345475fd293e9a2a6921328e356f881d06 (patch) | |
tree | 5f9ba6791439857349d9394dfb8bc736e2f6e9a5 /src | |
parent | 0c2576112d98d5fcadbfb2ee9f407bbc9ad72d85 (diff) |
Ensure height is even as we write two lines at once
Pick-to: 6.4
Fixes: QTBUG-103238
Change-Id: I50b0bd74760c8b6f35e307e1580fc3ea7b57cd0d
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
Diffstat (limited to 'src')
-rw-r--r-- | src/multimedia/video/qvideoframeconversionhelper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multimedia/video/qvideoframeconversionhelper.cpp b/src/multimedia/video/qvideoframeconversionhelper.cpp index c2323176f..ab226d0d8 100644 --- a/src/multimedia/video/qvideoframeconversionhelper.cpp +++ b/src/multimedia/video/qvideoframeconversionhelper.cpp @@ -31,6 +31,7 @@ static inline void planarYUV420_to_ARGB32(const uchar *y, int yStride, quint32 *rgb, int width, int height) { + height &= ~1; quint32 *rgb0 = rgb; quint32 *rgb1 = rgb + width; @@ -379,6 +380,7 @@ static inline void planarYUV420_16bit_to_ARGB32(const uchar *y, int yStride, quint32 *rgb, int width, int height) { + height &= ~1; quint32 *rgb0 = rgb; quint32 *rgb1 = rgb + width; |