mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix the aggregate bug, adjust to starttime of msg. 2.0.91
This commit is contained in:
parent
5aa31568ba
commit
0e9c9db3f4
3 changed files with 13 additions and 2 deletions
|
@ -823,7 +823,9 @@ int __srs_rtmp_on_aggregate(Context* context, SrsCommonMessage* msg)
|
|||
return ret;
|
||||
}
|
||||
|
||||
// the aggregate message always use abs time.
|
||||
int delta = -1;
|
||||
|
||||
while (!stream->empty()) {
|
||||
if (!stream->require(1)) {
|
||||
ret = ERROR_RTMP_AGGREGATE;
|
||||
|
@ -862,7 +864,7 @@ int __srs_rtmp_on_aggregate(Context* context, SrsCommonMessage* msg)
|
|||
timestamp |= time_h<<24;
|
||||
timestamp &= 0x7FFFFFFF;
|
||||
|
||||
// adjust timestamp.
|
||||
// adjust abs timestamp in aggregate msg.
|
||||
if (delta < 0) {
|
||||
delta = (int)msg->header.timestamp - (int)timestamp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue