pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

PJMEDIA audio RTP packet timestamp wrong format specifier in debug message

Open vit1251 opened this issue 3 years ago • 0 comments

Describe the bug

pjmedia/src/pjmedia/rtp.c

    PJ_LOG(5, (THIS_FILE,
<------>       "pjmedia_rtp_session_init2: ses=%p, seq=%d, ts=%d, peer_ssrc=%d",
<------>       ses, pj_ntohs(ses->out_hdr.seq), pj_ntohl(ses->out_hdr.ts),
<------>       ses->has_peer_ssrc? ses->peer_ssrc : 0));

I assume ts is unsigned 32 bit integer value and there we should have "%u" format specifier.

Steps to reproduce

Set starting ts value in settings with value more than 0x7FFF_FFFF

PJSIP version

2.11

Context

Debugging RTP media stream on longest audio session

Log, call stack, etc

N/A

vit1251 avatar Apr 20 '22 19:04 vit1251