Skip to content

Commit

Permalink
fix RTCP-SR init timestamp value
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Nov 19, 2022
1 parent 37f7642 commit 2f477a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions librtp/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
4 changes: 2 additions & 2 deletions librtp/source/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2f477a5

Please sign in to comment.