Commit 411303f8 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Mkv: kill warnings.

parent 318b67aa
...@@ -28,6 +28,13 @@ ...@@ -28,6 +28,13 @@
#include "demux.hpp" #include "demux.hpp"
/* GetFourCC helper */
#define GetFOURCC( p ) __GetFOURCC( (uint8_t*)p )
static vlc_fourcc_t __GetFOURCC( uint8_t *p )
{
return VLC_FOURCC( p[0], p[1], p[2], p[3] );
}
/* Destructor */ /* Destructor */
matroska_segment_c::~matroska_segment_c() matroska_segment_c::~matroska_segment_c()
{ {
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "mkv.hpp" #include "mkv.hpp"
#include "Ebml_parser.hpp" #include "Ebml_parser.hpp"
class chapter_edition_c; class chapter_edition_c;
......
...@@ -28,6 +28,14 @@ ...@@ -28,6 +28,14 @@
#include "demux.hpp" #include "demux.hpp"
/*****************************************************************************
* Some functions to manipulate memory
*****************************************************************************/
static inline char * ToUTF8( const UTFstring &u )
{
return strdup( u.GetUTF8().c_str() );
}
/***************************************************************************** /*****************************************************************************
* ParseSeekHead: * ParseSeekHead:
*****************************************************************************/ *****************************************************************************/
......
...@@ -131,19 +131,6 @@ extern "C" { ...@@ -131,19 +131,6 @@ extern "C" {
#define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId ) #define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId )
/*****************************************************************************
* Some functions to manipulate memory
*****************************************************************************/
#define GetFOURCC( p ) __GetFOURCC( (uint8_t*)p )
static vlc_fourcc_t __GetFOURCC( uint8_t *p )
{
return VLC_FOURCC( p[0], p[1], p[2], p[3] );
}
static inline char * ToUTF8( const UTFstring &u )
{
return strdup( u.GetUTF8().c_str() );
}
using namespace LIBMATROSKA_NAMESPACE; using namespace LIBMATROSKA_NAMESPACE;
using namespace std; using namespace std;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment