mirror of
https://github.com/ireader/media-server.git
synced 2026-01-12 00:18:51 +08:00
fix RTCP-SR init timestamp value
This commit is contained in:
@@ -11,6 +11,8 @@ LOCAL_SRC_FILES += $(wildcard source/*.c)
|
||||
LOCAL_SRC_FILES += $(wildcard source/*.cpp)
|
||||
LOCAL_SRC_FILES += $(wildcard payload/*.c)
|
||||
LOCAL_SRC_FILES += $(wildcard payload/*.cpp)
|
||||
LOCAL_SRC_FILES += $(wildcard rtpext/*.c)
|
||||
LOCAL_SRC_FILES += $(wildcard rtpext/*.cpp)
|
||||
|
||||
LOCAL_MODULE := rtp
|
||||
include $(BUILD_STATIC_LIBRARY)
|
||||
|
||||
@@ -67,8 +67,8 @@ int rtp_onsend(void* rtp, const void* data, int bytes)
|
||||
if(0 != rtp_packet_deserialize(&pkt, data, bytes))
|
||||
return -1; // packet error
|
||||
|
||||
//ctx->self->rtp_clock = rtpclock();
|
||||
//ctx->self->rtp_timestamp = pkt.rtp.timestamp; // RTP timestamp
|
||||
ctx->self->rtp_clock = rtpclock();
|
||||
ctx->self->rtp_timestamp = pkt.rtp.timestamp; // RTP timestamp
|
||||
ctx->self->rtp_bytes += pkt.payloadlen;
|
||||
ctx->self->rtp_packets += 1;
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user