mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
opusenc: configure baseclass requested samples really in samples
... as opposed to bytes.
This commit is contained in:
parent
3ecfd25808
commit
11f2207d1f
1 changed files with 2 additions and 4 deletions
|
@ -382,10 +382,8 @@ gst_opus_enc_setup_base_class (GstOpusEnc * enc, GstAudioEncoder * benc)
|
||||||
{
|
{
|
||||||
gst_audio_encoder_set_latency (benc,
|
gst_audio_encoder_set_latency (benc,
|
||||||
gst_opus_enc_get_latency (enc), gst_opus_enc_get_latency (enc));
|
gst_opus_enc_get_latency (enc), gst_opus_enc_get_latency (enc));
|
||||||
gst_audio_encoder_set_frame_samples_min (benc,
|
gst_audio_encoder_set_frame_samples_min (benc, enc->frame_samples);
|
||||||
enc->frame_samples * enc->n_channels * 2);
|
gst_audio_encoder_set_frame_samples_max (benc, enc->frame_samples);
|
||||||
gst_audio_encoder_set_frame_samples_max (benc,
|
|
||||||
enc->frame_samples * enc->n_channels * 2);
|
|
||||||
gst_audio_encoder_set_frame_max (benc, 0);
|
gst_audio_encoder_set_frame_max (benc, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue