Skip to content
Snippets Groups Projects
Commit c5b5dc4e authored by Paul Gregoire's avatar Paul Gregoire
Browse files

Revert packet decode for min/max chunk size

parent 8d278bb3
No related branches found
No related tags found
No related merge requests found
......@@ -269,7 +269,7 @@ public class RTMPProtocolDecoder implements Constants, IEventDecoder {
log.trace("Source buffer position: {}, limit: {}, packet-buf.position {}, packet size: {}", in.position(), in.limit(), buf.position(), header.getSize());
}
// read chunk
int length = Math.max(buf.remaining(), readChunkSize);
int length = Math.min(buf.remaining(), readChunkSize);
if (in.remaining() < length) {
log.debug("In buffer is too small, buffering ({},{})", in.remaining(), length);
// how much more data we need to continue?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment