mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
opusenc: fix terminating NUL being written in signature
This commit is contained in:
parent
5dd147d705
commit
7664e28a0c
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ gst_opus_enc_create_id_buffer (GstOpusEnc * enc)
|
|||
gst_byte_writer_init (&bw);
|
||||
|
||||
/* See http://wiki.xiph.org/OggOpus */
|
||||
gst_byte_writer_put_string_utf8 (&bw, "OpusHead");
|
||||
gst_byte_writer_put_data (&bw, (const guint8 *) "OpusHead", 8);
|
||||
gst_byte_writer_put_uint8 (&bw, 0); /* version number */
|
||||
gst_byte_writer_put_uint8 (&bw, enc->n_channels);
|
||||
gst_byte_writer_put_uint16_le (&bw, 0); /* pre-skip *//* TODO: endianness ? */
|
||||
|
|
Loading…
Reference in a new issue