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>2014-04-01 15:06:39 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2014-04-01 20:03:07 +0400
commite22098a01e856c8eba8ea388aef7c1c4aee31f26 (patch)
treebd95dff61932cd700410ad424d2f0def94d3a3d0 /decoder
parentddeda53a826e6fbc8074be843aaf88235c9cbd6b (diff)
dxva2: remove unused function
Diffstat (limited to 'decoder')
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.cpp10
-rw-r--r--decoder/LAVVideo/decoders/dxva2dec.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.cpp b/decoder/LAVVideo/decoders/dxva2dec.cpp
index d3813f56..944a7545 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.cpp
+++ b/decoder/LAVVideo/decoders/dxva2dec.cpp
@@ -1257,16 +1257,6 @@ HRESULT CDecDXVA2::AdditionaDecoderInit()
return S_OK;
}
-__forceinline d3d_surface_t *CDecDXVA2::FindSurface(LPDIRECT3DSURFACE9 pSurface)
-{
- for (int i = 0; i < m_NumSurfaces; i++) {
- if (m_pSurfaces[i].d3d == pSurface)
- return &m_pSurfaces[i];
- }
- ASSERT(0);
- return nullptr;
-}
-
HRESULT CDecDXVA2::PostDecode()
{
if (m_bFailHWDecode) {
diff --git a/decoder/LAVVideo/decoders/dxva2dec.h b/decoder/LAVVideo/decoders/dxva2dec.h
index d6242d0d..44430c24 100644
--- a/decoder/LAVVideo/decoders/dxva2dec.h
+++ b/decoder/LAVVideo/decoders/dxva2dec.h
@@ -89,7 +89,6 @@ private:
static int get_dxva2_buffer(struct AVCodecContext *c, AVFrame *pic, int flags);
static void free_dxva2_buffer(void *opaque, uint8_t *data);
- d3d_surface_t *FindSurface(LPDIRECT3DSURFACE9 pSurface);
STDMETHODIMP FlushDisplayQueue(BOOL bDeliver);
STDMETHODIMP FlushFromAllocator();