houxiao
2017-08-09 d9ffa50c7e8d6b8c3157690aef8e2a70af1d1695
RtspFace/MediaHelper.cpp
@@ -3,6 +3,21 @@
#include <liveMedia/liveMedia.hh>
#include <liveMedia/Base64.hh>
uint8_t* base64_decode(char const* in, size_t inSize, size_t& resultSize, bool trimTrailingZeros)
{
   unsigned _resultSize = resultSize;
   Boolean _trimTrailingZeros = trimTrailingZeros;
   unsigned char* ret = base64Decode(in, inSize, _resultSize, _trimTrailingZeros);
   resultSize = _resultSize;
   return ret;
}
char* base64_encode(char const* orig, size_t origLength)
{
   unsigned _origLength = origLength;
   return base64Encode(orig, _origLength);
}
SPropRecord* parseSPropParameterSets(char const* sPropParameterSetsStr, int& numSPropRecords)
{  
  // Make a copy of the input string, so we can replace the commas with '\0's: