1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #424, fix aggregate timestamp bug. 2.0.174

This commit is contained in:
winlin 2015-06-10 13:53:13 +08:00
parent 8e8c8108fc
commit 6941f2c072
3 changed files with 4 additions and 2 deletions

View file

@ -1922,7 +1922,8 @@ int SrsSource::on_aggregate(SrsCommonMessage* msg)
timestamp &= 0x7FFFFFFF;
// adjust abs timestamp in aggregate msg.
if (delta < 0) {
// only -1 means uninitialized delta.
if (delta == -1) {
delta = (int)msg->header.timestamp - (int)timestamp;
}
timestamp += delta;