mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
opusenc: fix calculation of filler data size
https://bugzilla.gnome.org/show_bug.cgi?id=660469
This commit is contained in:
parent
b3d751667d
commit
4a4b1f472e
1 changed files with 1 additions and 1 deletions
|
@ -807,7 +807,7 @@ gst_opus_enc_encode (GstOpusEnc * enc, gboolean flush)
|
|||
(enc->bitrate * enc->frame_samples / enc->sample_rate + 4) / 8;
|
||||
|
||||
if (flush && gst_adapter_available (enc->adapter) % bytes != 0) {
|
||||
guint diff = gst_adapter_available (enc->adapter) % bytes;
|
||||
guint diff = bytes - gst_adapter_available (enc->adapter) % bytes;
|
||||
GstBuffer *buf = gst_buffer_new_and_alloc (diff);
|
||||
|
||||
memset (GST_BUFFER_DATA (buf), 0, diff);
|
||||
|
|
Loading…
Reference in a new issue