Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2017-08-12 11:29:58 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2017-08-12 11:31:45 +0300
commit8d1e9704d684e7bf9837280bc36a839b91232f1f (patch)
tree4b4f13fa39f8da68de36f025b36dec293c8635fd
parentac756a4f77213a27bb61cc5ccbbda5a6dd5f6e1a (diff)
d3d11va: silence cast warnings for the array slice index
-rw-r--r--decoder/LAVVideo/decoders/d3d11/D3D11SurfaceAllocator.cpp2
-rw-r--r--decoder/LAVVideo/decoders/d3d11va.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/decoder/LAVVideo/decoders/d3d11/D3D11SurfaceAllocator.cpp b/decoder/LAVVideo/decoders/d3d11/D3D11SurfaceAllocator.cpp
index 5d97d555..9372ba8f 100644
--- a/decoder/LAVVideo/decoders/d3d11/D3D11SurfaceAllocator.cpp
+++ b/decoder/LAVVideo/decoders/d3d11/D3D11SurfaceAllocator.cpp
@@ -77,7 +77,7 @@ STDMETHODIMP CD3D11MediaSample::GetD3D11Texture(int nView, ID3D11Texture2D **ppT
if (m_pFrame)
{
*ppTexture = (ID3D11Texture2D *)m_pFrame->data[0];
- *pArraySlice = (intptr_t)m_pFrame->data[1];
+ *pArraySlice = (UINT)(intptr_t)m_pFrame->data[1];
(*ppTexture)->AddRef();
diff --git a/decoder/LAVVideo/decoders/d3d11va.cpp b/decoder/LAVVideo/decoders/d3d11va.cpp
index 180ca1d3..e7d853a5 100644
--- a/decoder/LAVVideo/decoders/d3d11va.cpp
+++ b/decoder/LAVVideo/decoders/d3d11va.cpp
@@ -915,7 +915,7 @@ HRESULT CDecD3D11::DeliverD3D11ReadbackDirect(LAVFrame *pFrame)
}
pDeviceContext->lock(pDeviceContext->lock_ctx);
- pDeviceContext->device_context->CopySubresourceRegion(m_pD3D11StagingTexture, 0, 0, 0, 0, (ID3D11Texture2D *)src->data[0], (intptr_t)src->data[1], nullptr);
+ pDeviceContext->device_context->CopySubresourceRegion(m_pD3D11StagingTexture, 0, 0, 0, 0, (ID3D11Texture2D *)src->data[0], (UINT)(intptr_t)src->data[1], nullptr);
pDeviceContext->unlock(pDeviceContext->lock_ctx);
av_frame_free(&src);