[neon/qt/qtmultimedia/Neon/testing] debian: Add a patch to increase buffer sizes in tst_QVideoFrame::image() test.

Dmitry Shachnev null at kde.org
Tue May 25 09:50:56 BST 2021


Git commit f869d887c41ee9b9276291fc5c62f95908da7b3b by Dmitry Shachnev.
Committed on 20/02/2021 at 12:31.
Pushed by sitter into branch 'Neon/testing'.

Add a patch to increase buffer sizes in tst_QVideoFrame::image() test.

To fix segmentation fault that sometimes happens.

Closes: #982973.

M  +3    -0    debian/changelog
M  +1    -0    debian/patches/series
A  +41   -0    debian/patches/test_buffer_size.diff

https://invent.kde.org/neon/qt/qtmultimedia/commit/f869d887c41ee9b9276291fc5c62f95908da7b3b

diff --git a/debian/changelog b/debian/changelog
index b48b26d..7f707f1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,8 @@
 qtmultimedia-opensource-src (5.15.2-3) UNRELEASED; urgency=medium
 
+  [ Dmitry Shachnev ]
+  * Add a patch to increase buffer sizes in tst_QVideoFrame::image() test,
+    to fix segmentation fault that sometimes happens (closes: #982973).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Sat, 20 Feb 2021 15:28:46 +0300
 
diff --git a/debian/patches/series b/debian/patches/series
index 1662367..147fd01 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 rpath_nonlinux.diff
+test_buffer_size.diff
diff --git a/debian/patches/test_buffer_size.diff b/debian/patches/test_buffer_size.diff
new file mode 100644
index 0000000..4cf57c6
--- /dev/null
+++ b/debian/patches/test_buffer_size.diff
@@ -0,0 +1,41 @@
+Description: increase buffer sizes used in tst_QVideoFrame::image() tests
+Author: Dmitry Shachnev <mitya57 at debian.org>
+Forwarded: https://codereview.qt-project.org/c/qt/qtmultimedia/+/335592
+Last-Update: 2021-02-20
+
+--- a/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
++++ b/tests/auto/unit/qvideoframe/tst_qvideoframe.cpp
+@@ -1244,14 +1244,14 @@ void tst_QVideoFrame::image_data()
+     QTest::newRow("64x64 YUV420P")
+             << QSize(64, 64)
+             << QVideoFrame::Format_YUV420P
+-            << 13288
++            << 18432
+             << 256
+             << QImage::Format_ARGB32;
+ 
+     QTest::newRow("64x64 YV12")
+             << QSize(64, 64)
+             << QVideoFrame::Format_YV12
+-            << 16384
++            << 18432
+             << 256
+             << QImage::Format_ARGB32;
+ 
+@@ -1272,14 +1272,14 @@ void tst_QVideoFrame::image_data()
+     QTest::newRow("64x64 NV12")
+             << QSize(64, 64)
+             << QVideoFrame::Format_NV12
+-            << 16384
++            << 24576
+             << 256
+             << QImage::Format_ARGB32;
+ 
+     QTest::newRow("64x64 NV21")
+             << QSize(64, 64)
+             << QVideoFrame::Format_NV21
+-            << 16384
++            << 24576
+             << 256
+             << QImage::Format_ARGB32;
+ #endif



More information about the Neon-commits mailing list