mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-17 21:06:17 +00:00
celtenc: fix calculation of filler data size
https://bugzilla.gnome.org/show_bug.cgi?id=660469
This commit is contained in:
parent
4a4b1f472e
commit
ac95f56d2e
1 changed files with 1 additions and 1 deletions
|
@ -820,7 +820,7 @@ gst_celt_enc_encode (GstCeltEnc * enc, gboolean flush)
|
|||
}
|
||||
|
||||
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