{
BITMAPINFOHEADER *p_bih;
DMO_MEDIA_TYPE mt;
- int i_chroma = VLC_FOURCC('Y','U','Y','2'), i_planes = 1, i_bpp = 16;
+ unsigned i_chroma = VLC_FOURCC('Y','U','Y','2');
+ int i_planes = 1, i_bpp = 16;
int i = 0;
/* Find out which chroma to use */
GETCLASS GetClass;
IClassFactory *cFactory = NULL;
IUnknown *cObject = NULL;
- codec_dll *codecs_table = b_out ? encoders_table : decoders_table;
+ const codec_dll *codecs_table = b_out ? encoders_table : decoders_table;
int i_codec;
/* Look for a DMO which can handle the requested codec */
}
return VLC_SUCCESS;
+
+loader:
#endif /* LOADER */
- loader:
for( i_codec = 0; codecs_table[i_codec].i_fourcc != 0; i_codec++ )
{
if( codecs_table[i_codec].i_fourcc == p_fmt->i_codec )
#endif
return NULL;
}
- else if( i_result == DMO_E_NOTACCEPTING )
+ else if( i_result == (int)DMO_E_NOTACCEPTING )
{
/* Need to call ProcessOutput */
msg_Dbg( p_dec, "ProcessInput(): not accepting" );
memcpy( p_vih, dmo_type.pbFormat, dmo_type.cbFormat );
memcpy( ((uint8_t *)p_vih) + dmo_type.cbFormat, p_data, i_data );
DMOFreeMediaType( &dmo_type );
- dmo_type.pbFormat = p_vih;
+ dmo_type.pbFormat = (char*)p_vih;
dmo_type.cbFormat = i_vih;
msg_Dbg( p_enc, "found extra data: %i", i_data );
#endif
return NULL;
}
- else if( i_result == DMO_E_NOTACCEPTING )
+ else if( i_result == (int)DMO_E_NOTACCEPTING )
{
/* Need to call ProcessOutput */
msg_Dbg( p_enc, "ProcessInput(): not accepting" );
static const GUID MEDIASUBTYPE_RGB24 = {0xe436eb7d, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}};
static const GUID MEDIASUBTYPE_RGB565 = {0xe436eb7b, 0x524f, 0x11ce, {0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70}};
+void* CoTaskMemAlloc(unsigned long cb);
+void CoTaskMemFree(void* cb);
+
#define IUnknown IUnknownHack
#define IClassFactory IClassFactoryHack
typedef struct _IUnknown IUnknown;