mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
theoradec: Avoid an unnecessary memory allocation in vorbiscomment handling.
This commit is contained in:
parent
777f8ab1bf
commit
e7d4250fc3
1 changed files with 3 additions and 2 deletions
|
@ -808,8 +808,9 @@ theora_handle_comment_packet (GstTheoraDec * dec, ogg_packet * packet)
|
|||
|
||||
GST_DEBUG_OBJECT (dec, "parsing comment packet");
|
||||
|
||||
buf = gst_buffer_new_and_alloc (packet->bytes);
|
||||
memcpy (GST_BUFFER_DATA (buf), packet->packet, packet->bytes);
|
||||
buf = gst_buffer_new ();
|
||||
GST_BUFFER_SIZE (buf) = packet->bytes;
|
||||
GST_BUFFER_DATA (buf) = packet->packet;
|
||||
|
||||
list =
|
||||
gst_tag_list_from_vorbiscomment_buffer (buf, (guint8 *) "\201theora", 7,
|
||||
|
|
Loading…
Reference in a new issue