Skip to content

Commit acb191e

Browse files
authored
Merge pull request #438 from Red5/bug/RED5DEV-2156
Bug/red5 dev 2156
2 parents 5f608b1 + a328f7d commit acb191e

12 files changed

Lines changed: 22 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ tests/conf/rtmps_truststore.p12
3030
!SSE-README.md
3131
!SECURITY_FIXES_SUMMARY.md
3232
!docs/CACHE_USAGE_EXAMPLES.md
33+
.codex

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>2.0.31</version>
6+
<version>2.0.32</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-client</artifactId>

client/src/main/java/org/red5/client/Red5Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public final class Red5Client {
1818
/**
1919
* Current server version with revision
2020
*/
21-
public static final String VERSION = "Red5 Client 2.0.31";
21+
public static final String VERSION = "Red5 Client 2.0.32";
2222

2323
/**
2424
* Create a new Red5Client object using the connection local to the current thread A bit of magic that lets you access the red5 scope

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>2.0.31</version>
6+
<version>2.0.32</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-server-common</artifactId>

common/src/main/java/org/red5/server/api/Red5.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public final class Red5 {
5757
/**
5858
* Server version with revision
5959
*/
60-
public static final String VERSION = "Red5 Server 2.0.31";
60+
public static final String VERSION = "Red5 Server 2.0.32";
6161

6262
/**
6363
* Server version for fmsVer requests
6464
*/
65-
public static final String FMS_VERSION = "RED5/2,0,31,0";
65+
public static final String FMS_VERSION = "RED5/2,0,32,0";
6666

6767
/**
6868
* Server capabilities

common/src/main/java/org/red5/server/stream/PlayEngine.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,6 +1199,16 @@ private void sendMessage(RTMPMessage messageIn) {
11991199
eventTime -= startTs;
12001200
}
12011201
}
1202+
// Clamp negative adjusted timestamps. Buffered events (decoder configs, keyframes)
1203+
// captured before the live anchor land here with eventTime < 0; place them at ts=1
1204+
// so they precede the first live frame at ts=2 without being interpreted as a
1205+
// far-future unsigned-32 value (e.g. -97 on the wire = 0xFFFFFF9F = ~49.7 days).
1206+
if (eventTime < 0) {
1207+
if (isTrace) {
1208+
log.trace("sendMessage: clamping negative adjusted timestamp {} to 1 (buffered prelude before live anchor)", eventTime);
1209+
}
1210+
eventTime = 1;
1211+
}
12021212
messageOut.getBody().setTimestamp(eventTime);
12031213
if (isTrace) {
12041214
log.trace("sendMessage (updated): streamStartTS={}, length={}, streamOffset={}, timestamp={}", new Object[] { startTs, currentItem.get().getLength(), streamOffset, eventTime });

io/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>2.0.31</version>
6+
<version>2.0.32</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-io</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<name>Red5</name>
2525
<description>The Red5 server</description>
2626
<groupId>org.red5</groupId>
27-
<version>2.0.31</version>
27+
<version>2.0.32</version>
2828
<url>https://github.com/Red5/red5-server</url>
2929
<inceptionYear>2005</inceptionYear>
3030
<organization>

server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>2.0.31</version>
6+
<version>2.0.32</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-server</artifactId>

service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>2.0.31</version>
6+
<version>2.0.32</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-service</artifactId>

0 commit comments

Comments
 (0)