From 5c5b782e2a468d4f43e3b302a48c61c2d891462b Mon Sep 17 00:00:00 2001 From: Andy--S Date: Mon, 17 Apr 2023 16:03:20 -0700 Subject: [PATCH] Removed info logger. --- .../client/net/rtmp/codec/RTMPClientProtocolDecoderTest.java | 4 ++-- .../org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/test/java/org/red5/client/net/rtmp/codec/RTMPClientProtocolDecoderTest.java b/client/src/test/java/org/red5/client/net/rtmp/codec/RTMPClientProtocolDecoderTest.java index 3ac99bb74..8761d9c1a 100644 --- a/client/src/test/java/org/red5/client/net/rtmp/codec/RTMPClientProtocolDecoderTest.java +++ b/client/src/test/java/org/red5/client/net/rtmp/codec/RTMPClientProtocolDecoderTest.java @@ -99,8 +99,8 @@ public void testExtendedTImestampPartialPacket() { conn.setStateCode(RTMP.STATE_CONNECTED); RTMPClientProtocolDecoder decoder = new RTMPClientProtocolDecoder(); List objects = decoder.decodeBuffer(conn, IoBuffer.wrap(buf)); - RTMPDecodeState state = conn.getDecoderState(); + //RTMPDecodeState state = conn.getDecoderState(); assertTrue(objects.size() == 2); - assertTrue(state.getDecoderBufferAmount()==15); + } } diff --git a/common/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java b/common/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java index aa4effb4c..a548ad98e 100644 --- a/common/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java +++ b/common/src/main/java/org/red5/server/net/rtmp/codec/RTMPProtocolDecoder.java @@ -406,8 +406,7 @@ public Header decodeHeader(ChunkHeader chh, RTMPDecodeState state, IoBuffer in, header.setStreamId(RTMPUtils.readReverseInt(in)); // read the extended timestamp if we have the indication that it exists if (timeBase >= MEDIUM_INT_MAX) { - headerLength+=4; - log.info("{}", in.remaining()); + headerLength+=4; if (in.remaining() < 4 ) { state.bufferDecoding(headerLength - in.remaining()); in.position(startPostion);