[Red5commits] [1614] Fix for SN-9, patch contributed by Christian Eckerle
sgong
luke at codegent.com
Wed Jan 24 11:08:03 EST 2007
Fix for SN-9, patch contributed by Christian Eckerle
Timestamp: 01/15/07 09:36:43 EST (1 week ago)
Change: 1614
Author: sgong
Files (see diff or trac for details):
java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java
Trac: http://mirror1.cvsdude.com/trac/osflash/red5/changeset/1614
Index: /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java
===================================================================
--- /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java (revision 1608)
+++ /java/server/trunk/src/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java (revision 1614)
@@ -261,6 +261,5 @@
// Get the header size and length
- final byte headerSize = RTMPUtils.decodeHeaderSize(headerByte);
- int headerLength = RTMPUtils.getHeaderLength(headerSize);
+ int headerLength = RTMPUtils.getHeaderLength(RTMPUtils.decodeHeaderSize(headerByte));
if (headerLength > remaining) {
@@ -309,5 +308,5 @@
// skip the position back to the start
in.position(position);
- rtmp.bufferDecoding(headerSize + readAmount);
+ rtmp.bufferDecoding(headerLength + readAmount);
return null;
}
Note:
Diffs are chopped if more than 25k.
This is to get past the limit on the mailing list.
More information about the Red5commits
mailing list