summaryrefslogtreecommitdiff
path: root/multimedia/omxplayer/patches/patch-OMXAudio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/omxplayer/patches/patch-OMXAudio.cpp')
-rw-r--r--multimedia/omxplayer/patches/patch-OMXAudio.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/multimedia/omxplayer/patches/patch-OMXAudio.cpp b/multimedia/omxplayer/patches/patch-OMXAudio.cpp
new file mode 100644
index 00000000000..c51e4d31803
--- /dev/null
+++ b/multimedia/omxplayer/patches/patch-OMXAudio.cpp
@@ -0,0 +1,13 @@
+$NetBSD: patch-OMXAudio.cpp,v 1.1 2017/01/17 07:33:50 skrll Exp $
+
+--- OMXAudio.cpp.orig 2016-10-10 15:38:42.000000000 +0000
++++ OMXAudio.cpp
+@@ -585,7 +585,7 @@ bool COMXAudio::Initialize(OMXClock *clo
+ }
+
+ omx_buffer->nOffset = 0;
+- omx_buffer->nFilledLen = std::min(sizeof(m_wave_header), omx_buffer->nAllocLen);
++ omx_buffer->nFilledLen = std::min(sizeof(m_wave_header), (size_t)omx_buffer->nAllocLen);
+
+ memset((unsigned char *)omx_buffer->pBuffer, 0x0, omx_buffer->nAllocLen);
+ memcpy((unsigned char *)omx_buffer->pBuffer, &m_wave_header, omx_buffer->nFilledLen);