Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions librtsp/source/utils/rtsp-demuxer.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ static inline int rtsp_demuxer_onrtppacket(void* param, const void* data, int by
if (0 == pt->last && INT64_MIN == pt->pts)
pt->timestamp = timestamp;
else
pt->timestamp += (int32_t)(timestamp - pt->last);
pt->timestamp += (int64_t)(timestamp - pt->last);
pt->last = timestamp;
pt->pts = pt->timestamp * 1000 / pt->frequency;

Expand All @@ -318,7 +318,7 @@ static inline int rtsp_demuxer_onh2645nalu(void* param, const void* data, int by
if (0 == pt->last && INT64_MIN == pt->pts)
pt->timestamp = timestamp;
else
pt->timestamp += (int32_t)(timestamp - pt->last);
pt->timestamp += (int64_t)(timestamp - pt->last);
pt->last = timestamp;
pt->pts = pt->timestamp * 1000 / pt->frequency;

Expand Down