mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
opusenc: configure baseclass requested samples really in samples
... as opposed to bytes.
This commit is contained in:
parent
33e8e137a6
commit
db0aa7f056
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