]> git.sesse.net Git - vlc/blobdiff - modules/codec/dmo/buffer.c
codecs & packetizers: fix warnings
[vlc] / modules / codec / dmo / buffer.c
index ea51955b3f329fadcfa1cb959834cb63b49c7a4c..e26c80dd870d0590f0536d5a1ee4a5bf90f5f632 100644 (file)
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
+
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
 
 #include <vlc/vlc.h>
 #include <vlc_codec.h>
@@ -107,7 +108,7 @@ static long STDCALL GetBufferAndLength( IMediaBuffer *This,
     CMediaBuffer *p_mb = (CMediaBuffer *)This;
 
     if( !ppBuffer && !pcbLength ) return E_POINTER;
-    if( ppBuffer ) *ppBuffer = p_mb->p_block->p_buffer;
+    if( ppBuffer ) *ppBuffer = (char*)p_mb->p_block->p_buffer;
     if( pcbLength ) *pcbLength = p_mb->p_block->i_buffer;
     return S_OK;
 }