summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/multimedia/video/qvideoframeconversionhelper.cpp2
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;