summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2013-12-27 14:29:46 +0000
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>2013-12-27 14:42:04 +0000
commit26a5b64975e69c4236299fcf64dc0cb885fdcafb (patch)
tree181127e30a68b396260a70619adaf63a0e9878f0
parenta223866dc34caa5c33a47a22a26a5fdde0dfb01d (diff)
downloadgstreamer-plugins-bad-26a5b64975e69c4236299fcf64dc0cb885fdcafb.tar.gz
opusenc: increase max payload size to 4000 bytes
1275 is the maximum size of a frame, but the encoder may return up to 3 frames, and we need a few extra bytes for TOC, etc. We use 4000, which is a bit more, and suggested in the libopus docs.
-rw-r--r--ext/opus/gstopusenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c
index 9eefe9ca7..02190f9bd 100644
--- a/ext/opus/gstopusenc.c
+++ b/ext/opus/gstopusenc.c
@@ -141,7 +141,7 @@ static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
#define DEFAULT_INBAND_FEC FALSE
#define DEFAULT_DTX FALSE
#define DEFAULT_PACKET_LOSS_PERCENT 0
-#define DEFAULT_MAX_PAYLOAD_SIZE 1024
+#define DEFAULT_MAX_PAYLOAD_SIZE 4000
enum
{
@@ -270,7 +270,7 @@ gst_opus_enc_class_init (GstOpusEncClass * klass)
GST_PARAM_MUTABLE_PLAYING));
g_object_class_install_property (G_OBJECT_CLASS (klass),
PROP_MAX_PAYLOAD_SIZE, g_param_spec_uint ("max-payload-size",
- "Max payload size", "Maximum payload size in bytes", 2, 1275,
+ "Max payload size", "Maximum payload size in bytes", 2, 4000,
DEFAULT_MAX_PAYLOAD_SIZE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS |
GST_PARAM_MUTABLE_PLAYING));