Made RTSP max send value runtime configurable.
This commit is contained in:
parent
39fd36db04
commit
de1d202457
3 changed files with 17 additions and 1 deletions
|
@ -3,10 +3,10 @@
|
|||
#include "timing.h"
|
||||
#include "defines.h"
|
||||
|
||||
#define MAX_SEND 1024*4
|
||||
|
||||
namespace RTP {
|
||||
double Packet::startRTCP = 0;
|
||||
unsigned int MAX_SEND = 4*1024;
|
||||
|
||||
unsigned int Packet::getHsize() const {
|
||||
return 12 + 4 * getContribCount();
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
/// This namespace holds all RTP-parsing and sending related functionality.
|
||||
namespace RTP {
|
||||
|
||||
extern unsigned int MAX_SEND;
|
||||
|
||||
/// This class is used to make RTP packets. Currently, H264, and AAC are supported. RTP mechanisms, like increasing sequence numbers and setting timestamps are all taken care of in here.
|
||||
class Packet {
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue