From 8d050d21165cf29e89846c8009f69c55d8d13ac5 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Fri, 4 Mar 2011 12:11:12 +0100 Subject: [PATCH] videoparsers: Fix unitialized variables Makes macosx compiler happy --- gst/videoparsers/gstdiracparse.c | 2 +- gst/videoparsers/h263parse.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gst/videoparsers/gstdiracparse.c b/gst/videoparsers/gstdiracparse.c index 4ddcd3a5ae..00130f8fef 100644 --- a/gst/videoparsers/gstdiracparse.c +++ b/gst/videoparsers/gstdiracparse.c @@ -272,7 +272,7 @@ gst_dirac_parse_check_valid_frame (GstBaseParse * parse, drain = GST_BASE_PARSE_FRAME_DRAIN (frame); if (!sync && !drain) { - guint32 next_sync_word; + guint32 next_sync_word = 0; next_header = GST_READ_UINT32_BE (GST_BUFFER_DATA (frame->buffer) + 5); GST_LOG ("next header %d", next_header); diff --git a/gst/videoparsers/h263parse.c b/gst/videoparsers/h263parse.c index b22c4de194..1fdf22316b 100644 --- a/gst/videoparsers/h263parse.c +++ b/gst/videoparsers/h263parse.c @@ -74,7 +74,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer, GstBitReader br; guint8 tr; - guint32 psc, temp32; + guint32 psc = 0, temp32; guint8 temp8, pquant; gboolean hasplusptype; @@ -181,7 +181,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer, if (hasplusptype) { guint8 ufep; guint8 cpm; - guint32 opptype, mpptype; + guint32 opptype = 0, mpptype = 0; /* 5.1.4 PLUSPTYPE */ @@ -264,7 +264,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer, } if (ufep == 1) { - guint32 cpfmt; + guint32 cpfmt = 0; /* 5.1.5 CPFMT : Custom Picture Format (23 bits) */ if (!gst_bit_reader_get_bits_uint32 (&br, &cpfmt, 23)) @@ -278,7 +278,7 @@ gst_h263_parse_get_params (H263Params * params, GstBuffer * buffer, params->height = (cpfmt & 0x1f) * 4; if (temp8 == 0xf) { - guint32 epar; + guint32 epar = 0; /* 5.1.6 EPAR : Extended Pixel Aspect Ratio (16bits) */ if (!gst_bit_reader_get_bits_uint32 (&br, &epar, 16)) goto more;