diff options
Diffstat (limited to 'gst/matroska/ebml-write.c')
-rw-r--r-- | gst/matroska/ebml-write.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gst/matroska/ebml-write.c b/gst/matroska/ebml-write.c index e2a6a2f7..69aa1ffa 100644 --- a/gst/matroska/ebml-write.c +++ b/gst/matroska/ebml-write.c @@ -256,7 +256,6 @@ static void gst_ebml_write_element_id (GstBuffer * buf, guint32 id) { guint8 *data = GST_BUFFER_DATA (buf) + GST_BUFFER_SIZE (buf); - guint bytes = 4, mask = 0x10; /* get ID length */ @@ -292,7 +291,6 @@ static void gst_ebml_write_element_size (GstBuffer * buf, guint64 size) { guint8 *data = GST_BUFFER_DATA (buf) + GST_BUFFER_SIZE (buf); - guint bytes = 1, mask = 0x80; if (size != GST_EBML_SIZE_UNKNOWN) { @@ -482,7 +480,6 @@ void gst_ebml_write_uint (GstEbmlWrite * ebml, guint32 id, guint64 num) { GstBuffer *buf = gst_ebml_write_element_new (ebml, sizeof (num)); - guint size = gst_ebml_write_get_uint_size (num); /* write */ @@ -511,7 +508,6 @@ gst_ebml_write_sint (GstEbmlWrite * ebml, guint32 id, gint64 num) * have a number (-)0x8000 (G_MINSHORT), then my abs()<<1 * will be 0x10000; this is G_MAXUSHORT+1! So: if (<0) -1. */ guint64 unum = (num < 0 ? (-num - 1) << 1 : num << 1); - guint size = gst_ebml_write_get_uint_size (unum); /* make unsigned */ @@ -564,7 +560,6 @@ void gst_ebml_write_ascii (GstEbmlWrite * ebml, guint32 id, const gchar * str) { gint len = strlen (str) + 1; /* add trailing '\0' */ - GstBuffer *buf = gst_ebml_write_element_new (ebml, len); gst_ebml_write_element_id (buf, id); @@ -620,7 +615,6 @@ guint64 gst_ebml_write_master_start (GstEbmlWrite * ebml, guint32 id) { guint64 pos = ebml->pos, t; - GstBuffer *buf = gst_ebml_write_element_new (ebml, 0); t = GST_BUFFER_SIZE (buf); @@ -644,7 +638,6 @@ void gst_ebml_write_master_finish (GstEbmlWrite * ebml, guint64 startpos) { guint64 pos = ebml->pos; - GstBuffer *buf; gst_ebml_write_seek (ebml, startpos); @@ -738,7 +731,6 @@ void gst_ebml_replace_uint (GstEbmlWrite * ebml, guint64 pos, guint64 num) { guint64 oldpos = ebml->pos; - GstBuffer *buf = gst_buffer_new_and_alloc (8); gst_ebml_write_seek (ebml, pos); |