summaryrefslogtreecommitdiff
path: root/gst/jp2kdecimator
diff options
context:
space:
mode:
authorEdward Hervey <edward.hervey@collabora.co.uk>2011-01-06 12:50:14 +0100
committerEdward Hervey <edward.hervey@collabora.co.uk>2011-01-06 12:50:14 +0100
commit0a55306c40b67021cbcc7439dd8944ce47e38c78 (patch)
tree514a2098e49fbb2c8fe296b7d21bcc373cac406b /gst/jp2kdecimator
parent063be2f97208ab5ac3fe6be04d2368b2aa4bb4a8 (diff)
jp2kdecimator: Fix unitialized variables on macosx
Diffstat (limited to 'gst/jp2kdecimator')
-rw-r--r--gst/jp2kdecimator/jp2kcodestream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/jp2kdecimator/jp2kcodestream.c b/gst/jp2kdecimator/jp2kcodestream.c
index e5c67e0d8..6fb28788e 100644
--- a/gst/jp2kdecimator/jp2kcodestream.c
+++ b/gst/jp2kdecimator/jp2kcodestream.c
@@ -839,8 +839,8 @@ parse_packet (GstJP2kDecimator * self, GstByteReader * reader,
const MainHeader * header, Tile * tile, const PacketIterator * it)
{
GstFlowReturn ret = GST_FLOW_OK;
- guint16 marker, length;
- guint16 seqno;
+ guint16 marker = 0, length;
+ guint16 seqno = 0;
guint packet_start_pos;
const guint8 *packet_start_data;
gboolean sop, eph;
@@ -1031,7 +1031,7 @@ parse_tile (GstJP2kDecimator * self, GstByteReader * reader,
const MainHeader * header, Tile * tile)
{
GstFlowReturn ret = GST_FLOW_OK;
- guint16 marker, length;
+ guint16 marker = 0, length;
if (!gst_byte_reader_peek_uint16_be (reader, &marker)) {
GST_ERROR_OBJECT (self, "Could not read marker");
@@ -1425,7 +1425,7 @@ parse_main_header (GstJP2kDecimator * self, GstByteReader * reader,
MainHeader * header)
{
GstFlowReturn ret = GST_FLOW_OK;
- guint16 marker, length;
+ guint16 marker = 0, length = 0;
/* First SOC */
if (!gst_byte_reader_get_uint16_be (reader, &marker)