Revision: 109
Author: [email protected]
Date: Mon Mar 18 01:52:03 2013
Log: Fix BytesBuffer.
http://code.google.com/p/red5phone/source/detail?r=109
Modified:
/branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java
=======================================
--- /branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java Thu Feb 21
09:21:48 2013
+++ /branches/red5sip/src/java/org/red5/sip/app/BytesBuffer.java Mon Mar 18
01:52:03 2013
@@ -28,7 +28,11 @@
}
protected int available() {
- return (end > start) ? (end - start) : (buffersCount - start +
end);
+ if(start >= 0) {
+ return (end > start) ? (end - start) : (buffersCount -
start + end);
+ } else {
+ return 0;
+ }
}
protected float bufferUsage() {