From 89dc625ac67d9bc0f5fa7060203eeaf59957e2fd Mon Sep 17 00:00:00 2001
From: Boris Grozev <boris@jitsi.org>
Date: Sat, 1 Dec 2012 09:58:55 +0000
Subject: [PATCH] Fixes a problem with RTP timestamps not being properly
 computed for Opus.

---
 .../impl/neomedia/codec/audio/opus/JNIEncoder.java    | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/org/jitsi/impl/neomedia/codec/audio/opus/JNIEncoder.java b/src/org/jitsi/impl/neomedia/codec/audio/opus/JNIEncoder.java
index 304c0a7d..75827e6b 100644
--- a/src/org/jitsi/impl/neomedia/codec/audio/opus/JNIEncoder.java
+++ b/src/org/jitsi/impl/neomedia/codec/audio/opus/JNIEncoder.java
@@ -50,7 +50,16 @@ public class JNIEncoder
      * <tt>JNIEncoder</tt> instances.
      */
     private static final Format[] SUPPORTED_OUTPUT_FORMATS
-        = new Format[] { new AudioFormat(Constants.OPUS_RTP) };
+        = new Format[] { new AudioFormat(
+                Constants.OPUS_RTP,
+                48000,
+                Format.NOT_SPECIFIED,
+                1,
+                Format.NOT_SPECIFIED,
+                Format.NOT_SPECIFIED,
+                Format.NOT_SPECIFIED,
+                Format.NOT_SPECIFIED,
+                Format.byteArray) };
 
     /**
      * The <tt>Logger</tt> used by this <tt>JNIEncoder</tt> instance
-- 
GitLab