- fixes from pvqa_pcap

This commit is contained in:
2024-12-23 17:39:45 +03:00
parent bf2d513080
commit 4ba1ea7fa2
7 changed files with 313 additions and 186 deletions

View File

@@ -43,7 +43,7 @@ public:
int mIsac32KPayloadType = -1;
int mIlbc20PayloadType = -1;
int mIlbc30PayloadType = -1;
int mGsmFrPayloadType = 3; // GSM is codec with fixed payload type. But sometimes it has to be overwritten.
int mGsmFrPayloadType = -1; // GSM is codec with fixed payload type. But sometimes it has to be overwritten.
int mGsmFrPayloadLength = 33; // Expected GSM payload length
int mGsmHrPayloadType = -1;
int mGsmEfrPayloadType = -1;
@@ -96,6 +96,9 @@ public:
};
std::vector<OpusSpec> mOpusSpec;
// Payload type
bool contains(int ptype) const;
// Textual representation - used in logging
std::string toString() const;
void clear();
@@ -110,7 +113,9 @@ public:
CodecList(const Settings& settings);
~CodecList();
void setSettings(const Settings& settings) { init(settings); }
void setSettings(const Settings& settings) {
init(settings);
}
int count() const;
Codec::Factory& codecAt(int index) const;
@@ -119,7 +124,7 @@ public:
void clear();
protected:
typedef std::vector<Codec::Factory*> FactoryList;
typedef std::vector<std::shared_ptr<Codec::Factory>> FactoryList;
FactoryList mFactoryList;
Settings mSettings;