diff options
author | Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> | 2011-09-28 13:25:21 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-10-03 11:21:02 +0200 |
commit | 85de20b8a14834059b5a60f33ba4757ed55f1ed6 (patch) | |
tree | ab7c738979f3ccf6fac62d60c76e5eb5b03a93a6 | |
parent | 8caa7adb5e851e419f1c47d558c03d81351fc1b9 (diff) |
opusenc: use the same frame size setup as the opus test code
https://bugzilla.gnome.org/show_bug.cgi?id=660364
-rw-r--r-- | ext/opus/gstopusenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index 9d4fe1286..10c1747d6 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -286,12 +286,13 @@ gst_opus_enc_sink_setcaps (GstPad * pad, GstCaps * caps) enc->frame_samples = enc->sample_rate / 50; break; case 40: - enc->frame_samples = enc->sample_rate / 20; + enc->frame_samples = enc->sample_rate / 25; break; case 60: enc->frame_samples = 3 * enc->sample_rate / 50; break; default: + GST_WARNING_OBJECT (enc, "Unsupported frame size: %d", enc->frame_size); return FALSE; break; } |