summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Jägenstedt <philipj@opera.com>2010-05-20 09:24:53 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-05-20 10:37:24 +0200
commit2f4ea3b73449050996e19bf65cedd4005b27ab1f (patch)
tree1ba08baf6e09ef0d1312d5154f3098d046498711
parentfd77b419a4cffab6f96c6228870693789ed30c12 (diff)
vp8enc: Limit max-latency to 25 to match libvpx
From libvpx/vp8/encoder/onyx_int.h: #define MAX_LAG_BUFFERS (CONFIG_REALTIME_ONLY? 1 : 25) While we don't need to be tied to what libvpx does internally, it doesn't make sense to pretend to support longer frame lags than are actually possible.
-rw-r--r--ext/vp8/gstvp8enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/vp8/gstvp8enc.c b/ext/vp8/gstvp8enc.c
index e39a45458..461af90b4 100644
--- a/ext/vp8/gstvp8enc.c
+++ b/ext/vp8/gstvp8enc.c
@@ -239,7 +239,7 @@ gst_vp8_enc_class_init (GstVP8EncClass * klass)
g_object_class_install_property (gobject_class, PROP_MAX_LATENCY,
g_param_spec_int ("max-latency", "Max latency",
"Number of frames in encoder queue",
- 0, 100, DEFAULT_MAX_LATENCY,
+ 0, 25, DEFAULT_MAX_LATENCY,
(GParamFlags) (G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)));
g_object_class_install_property (gobject_class, PROP_MAX_KEYFRAME_DISTANCE,