summaryrefslogtreecommitdiffstats
path: root/loader/dmo/DMO_AudioDecoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'loader/dmo/DMO_AudioDecoder.c')
-rw-r--r--loader/dmo/DMO_AudioDecoder.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/loader/dmo/DMO_AudioDecoder.c b/loader/dmo/DMO_AudioDecoder.c
index f5c9a93b80..647fd8b912 100644
--- a/loader/dmo/DMO_AudioDecoder.c
+++ b/loader/dmo/DMO_AudioDecoder.c
@@ -10,6 +10,7 @@
#include "except.h"
#else
#include "libwin32.h"
+#include "ldt_keeper.h"
#endif
#include "DMO_Filter.h"
@@ -33,6 +34,7 @@ struct _DMO_AudioDecoder
#define __MODULE__ "DirectShow audio decoder"
typedef long STDCALL (*GETCLASS) (GUID*, GUID*, void**);
+extern void print_wave_header(WAVEFORMATEX *h);
DMO_AudioDecoder * DMO_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX* wf,int out_channels)
//DMO_AudioDecoder * DMO_AudioDecoder_Create(const CodecInfo * info, const WAVEFORMATEX* wf)
@@ -83,8 +85,8 @@ DMO_AudioDecoder * DMO_AudioDecoder_Open(char* dllname, GUID* guid, WAVEFORMATEX
this->m_sDestType.cbFormat=18; //pWF->cbSize;
this->m_sDestType.pbFormat=this->m_sVhdr2;
-print_wave_header(this->m_sVhdr);
-print_wave_header(this->m_sVhdr2);
+print_wave_header((WAVEFORMATEX *)this->m_sVhdr);
+print_wave_header((WAVEFORMATEX *)this->m_sVhdr2);
this->m_pDMO_Filter = DMO_FilterCreate(dllname, guid, &this->m_sOurType, &this->m_sDestType);
if( !this->m_pDMO_Filter ) {
@@ -109,8 +111,8 @@ int DMO_AudioDecoder_Convert(DMO_AudioDecoder *this, const void* in_data, unsign
{
DMO_OUTPUT_DATA_BUFFER db;
CMediaBuffer* bufferin;
- unsigned int written = 0;
- unsigned int read = 0;
+ unsigned long written = 0;
+ unsigned long read = 0;
int r = 0;
if (!in_data || !out_data)