From fcc1740ee56089090993519361b6716c221f393c694ec9913561a240a56c76de Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 16 Feb 2018 06:08:31 +0000 Subject: [PATCH 1/2] - Fix bug in video capture - boo#1081281. The variable used to store the time code is only 16 bits, but needs to be 32-bits long. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=402 --- fix_videocapture.patch | 13 +++++++++++++ virtualbox.changes | 6 ++++++ virtualbox.spec | 3 +++ 3 files changed, 22 insertions(+) create mode 100644 fix_videocapture.patch diff --git a/fix_videocapture.patch b/fix_videocapture.patch new file mode 100644 index 0000000..5da2cd1 --- /dev/null +++ b/fix_videocapture.patch @@ -0,0 +1,13 @@ +Index: VirtualBox-5.2.6/src/VBox/Main/src-client/WebMWriter.h +=================================================================== +--- VirtualBox-5.2.6.orig/src/VBox/Main/src-client/WebMWriter.h ++++ VirtualBox-5.2.6/src/VBox/Main/src-client/WebMWriter.h +@@ -91,7 +91,7 @@ class WebMWriter : public EBMLWriter + public: + + /** Defines a WebM timecode. */ +- typedef uint16_t WebMTimecode; ++ typedef uint32_t WebMTimecode; + + /** Defines the WebM block flags data type. */ + typedef uint8_t WebMBlockFlags; diff --git a/virtualbox.changes b/virtualbox.changes index b584417..e9b97eb 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Feb 16 06:05:07 UTC 2018 - Larry.Finger@lwfinger.net + +- Fix bug in video capture - boo#1081281. + The variable used to store the time code is only 16 bits, but needs to be 32-bits long. + ------------------------------------------------------------------- Sat Feb 3 14:23:26 UTC 2018 - wbauer@tmo.at diff --git a/virtualbox.spec b/virtualbox.spec index 83e9981..a7f264b 100644 --- a/virtualbox.spec +++ b/virtualbox.spec @@ -117,6 +117,8 @@ Patch119: fixes_for_leap15.patch Patch120: fixes_for_python.patch # Remove vboxvideo from build Patch121: remove_vbox_video_build.patch +# Fix video capture +Patch122: fix_videocapture.patch # BuildRequires: LibVNCServer-devel BuildRequires: SDL-devel @@ -409,6 +411,7 @@ as an "extpack" for VirtualBox. The implementation is licensed under GPL. %endif %patch120 -p1 %patch121 -p1 +%patch122 -p1 #copy user manual cp %{SOURCE1} UserManual.pdf From 7732f04aaeef25f9c66e6a8e2ebe2c06a9db263539f86eddb73b8f3c3f8b723a Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Fri, 16 Feb 2018 17:42:12 +0000 Subject: [PATCH 2/2] File "fix_videocapture.patch" is added to fix the problem. OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=403 --- virtualbox.changes | 1 + 1 file changed, 1 insertion(+) diff --git a/virtualbox.changes b/virtualbox.changes index e9b97eb..fe9cf1d 100644 --- a/virtualbox.changes +++ b/virtualbox.changes @@ -3,6 +3,7 @@ Fri Feb 16 06:05:07 UTC 2018 - Larry.Finger@lwfinger.net - Fix bug in video capture - boo#1081281. The variable used to store the time code is only 16 bits, but needs to be 32-bits long. + File "fix_videocapture.patch" is added to fix the problem. ------------------------------------------------------------------- Sat Feb 3 14:23:26 UTC 2018 - wbauer@tmo.at