summaryrefslogtreecommitdiffstats
path: root/loader/dshow/allocator.c
diff options
context:
space:
mode:
authorvoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-23 08:07:07 +0000
committervoroshil <voroshil@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-23 08:07:07 +0000
commite33a1695bab717d2dd3a7e5c289ed822437b187f (patch)
tree2146e18e2a4b3eba6ea2c92468e22fee852513ec /loader/dshow/allocator.c
parent0a02ca6ec3a8d7cd371b01f2def1269ea73b236e (diff)
downloadmpv-e33a1695bab717d2dd3a7e5c289ed822437b187f.tar.bz2
mpv-e33a1695bab717d2dd3a7e5c289ed822437b187f.tar.xz
Fixed loading of VoxWare and wma9sp binary audio codecs using dshow engine.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22322 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/dshow/allocator.c')
-rw-r--r--loader/dshow/allocator.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/loader/dshow/allocator.c b/loader/dshow/allocator.c
index 3e2fc8c017..7eef9ada0f 100644
--- a/loader/dshow/allocator.c
+++ b/loader/dshow/allocator.c
@@ -146,8 +146,14 @@ static HRESULT STDCALL MemAllocator_SetProperties(IMemAllocator * This,
return E_FAIL;
*pActual = *pRequest;
- //if (pActual->cbBuffer == 2)
- // pActual->cbBuffer = 576;
+ /*
+ DirectShow DOCS ("Negotiating Allocators" chapter) says that allocator might not
+ honor the requested properties. Thus, since WMSP audio codecs requests bufer with two
+ bytes length for unknown reason, we should correct requested value. Otherwise above
+ codec don't want to load.
+ */
+ if (pActual->cbBuffer == 2)
+ pActual->cbBuffer = 10240; //Enough for WMSP codec
me->props = *pActual;