diff options
-rwxr-xr-x | src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java | 8 | ||||
-rw-r--r-- | src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIDecoder.java | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java b/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java index 70cfd25..e5cfcd5 100755 --- a/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java +++ b/src/net/java/sip/communicator/impl/neomedia/RTPConnectorInputStream.java @@ -86,6 +86,14 @@ public class RTPConnectorInputStream {
this.socket = socket;
+ try
+ {
+ this.socket.setReceiveBufferSize(65535);
+ }
+ catch(IOException e)
+ {
+ }
+
closed = false;
receiverThread = new Thread(this);
receiverThread.start();
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIDecoder.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIDecoder.java index f89c0d3..90ffd7c 100644 --- a/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIDecoder.java +++ b/src/net/java/sip/communicator/impl/neomedia/codec/video/h264/JNIDecoder.java @@ -263,6 +263,7 @@ public class JNIDecoder // Ask FFmpeg to decode. got_picture[0] = false; + // TODO Take into account the offset of inputBuffer. FFmpeg.avcodec_decode_video( avcontext, |