- reduce memory consumption when decoding RTP stream + bring back G722 and G729
This commit is contained in:
parent
cf9be1c3f2
commit
4ca4e84547
|
|
@ -240,8 +240,8 @@ void CodecList::init(const Settings& settings)
|
|||
mFactoryList.push_back(new G711Codec::UlawFactory());
|
||||
|
||||
mFactoryList.push_back(new GsmCodec::GsmFactory(mSettings.mGsmFrPayloadLength == 32 ? GsmCodec::Type::Bytes_32 : GsmCodec::Type::Bytes_33, mSettings.mGsmFrPayloadType));
|
||||
// mFactoryList.push_back(new G722Codec::G722Factory());
|
||||
// mFactoryList.push_back(new G729Codec::G729Factory());
|
||||
mFactoryList.push_back(new G722Codec::G722Factory());
|
||||
mFactoryList.push_back(new G729Codec::G729Factory());
|
||||
#ifndef TARGET_ANDROID
|
||||
mFactoryList.push_back(new GsmHrCodec::GsmHrFactory(mSettings.mGsmHrPayloadType));
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public:
|
|||
static EvsSpec parse(const std::string& spec);
|
||||
|
||||
bool operator == (const EvsSpec& rhs) const { return std::tie(mPayloadType, mBandwidth, mEncodingType) == std::tie(rhs.mPayloadType, rhs.mBandwidth, rhs.mEncodingType);}
|
||||
bool operator != (const EvsSpec& rhs) const { return ! (operator ==) (rhs);};
|
||||
bool operator != (const EvsSpec& rhs) const { return ! (operator ==) (rhs);}
|
||||
|
||||
};
|
||||
|
||||
|
|
@ -90,7 +90,7 @@ public:
|
|||
|
||||
bool isValid() const;
|
||||
bool operator == (const OpusSpec& rhs) const { return std::tie(mPayloadType, mRate, mChannels) == std::tie(rhs.mPayloadType, rhs.mRate, rhs.mChannels);}
|
||||
bool operator != (const OpusSpec& rhs) const { return ! (operator ==) (rhs);};
|
||||
bool operator != (const OpusSpec& rhs) const { return ! (operator ==) (rhs);}
|
||||
|
||||
static OpusSpec parse(const std::string& spec);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue