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:29:46 +0000
commit80df2cb0633a75f7ac390b08a6d3c87a3c9215b4 (patch)
treeed5ea334f5bfeb36b791d70fa2c83bcf4bb22727
parent0c301bfee7d79801a8fd4d3d2485ea31dc7e6d87 (diff)
downloadgstreamer-plugins-base-80df2cb0633a75f7ac390b08a6d3c87a3c9215b4.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));