static void StreamClose( void * );
static void TaskInterrupt( void * );
+#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1117756800
static unsigned char* parseH264ConfigStr( char const* configStr,
- unsigned& configSize );
+ unsigned int& configSize );
+#endif
/*****************************************************************************
* DemuxOpen:
}
else if( !strcmp( sub->codecName(), "H264" ) )
{
- unsigned int i_extra;
- uint8_t *p_extra;
-
+#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1117756800
+ unsigned int i_extra = 0;
+ uint8_t *p_extra = NULL;
+#endif
tk->fmt.i_codec = VLC_FOURCC( 'H', '2', '6', '4' );
tk->fmt.b_packetized = VLC_FALSE;
return VLC_SUCCESS;
}
+#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1117756800
static unsigned char* parseH264ConfigStr( char const* configStr,
- unsigned& configSize )
+ unsigned int& configSize )
{
char *dup, *psz;
+ if( configSize )
configSize = 0;
if( configStr == NULL || *configStr == '\0' )
psz = p;
}
- free( dup );
-
+ if( dup ) free( dup );
return cfg;
}
+#endif
/*char b64[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";*/
static int b64_decode( char *dest, char *src )