diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-11-02 10:30:52 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-11-03 20:35:41 +0200 |
commit | 6b751360ae56583197ac678f05aadbc8b7aa46ec (patch) | |
tree | 975e696478aecc6cd8ac844e04bab0a48946e75c | |
parent | 7773e1eb5869d3cd4223da432ea1bdf1d8cfd51e (diff) | |
download | gstreamer-plugins-base-6b751360ae56583197ac678f05aadbc8b7aa46ec.tar.gz |
opusenc: Disable granule position calculations by the base class
It is doing the wrong thing because of the Opus pre-skip: while the timestamps
are shifted by the pre-skip, the granule positions are not shifted.
oggmux is doing the right thing here already.
https://bugzilla.gnome.org/show_bug.cgi?id=757153
-rw-r--r-- | ext/opus/gstopusenc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/opus/gstopusenc.c b/ext/opus/gstopusenc.c index 718643a68..24bdeafc4 100644 --- a/ext/opus/gstopusenc.c +++ b/ext/opus/gstopusenc.c @@ -377,8 +377,6 @@ gst_opus_enc_finalize (GObject * object) static void gst_opus_enc_init (GstOpusEnc * enc) { - GstAudioEncoder *benc = GST_AUDIO_ENCODER (enc); - GST_DEBUG_OBJECT (enc, "init"); GST_PAD_SET_ACCEPT_TEMPLATE (GST_AUDIO_ENCODER_SINK_PAD (enc)); @@ -399,10 +397,6 @@ gst_opus_enc_init (GstOpusEnc * enc) enc->packet_loss_percentage = DEFAULT_PACKET_LOSS_PERCENT; enc->max_payload_size = DEFAULT_MAX_PAYLOAD_SIZE; enc->audio_type = DEFAULT_AUDIO_TYPE; - - /* arrange granulepos marking (and required perfect ts) */ - gst_audio_encoder_set_mark_granule (benc, TRUE); - gst_audio_encoder_set_perfect_timestamp (benc, TRUE); } static gboolean |