From f25b0eda0928af67a7b4d0c98f7489b1fadf44f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 12 Feb 2013 18:11:34 -0500 Subject: [PATCH] pngparse: Declare the width/height outside the loop Also initialize them to make gcc happy --- gst/videoparsers/gstpngparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/videoparsers/gstpngparse.c b/gst/videoparsers/gstpngparse.c index f4fa84efe6..06b42500f5 100644 --- a/gst/videoparsers/gstpngparse.c +++ b/gst/videoparsers/gstpngparse.c @@ -103,6 +103,7 @@ gst_png_parse_handle_frame (GstBaseParse * parse, GstByteReader reader; GstFlowReturn ret = GST_FLOW_OK; guint64 signature; + guint width = 0, height = 0; gst_buffer_map (frame->buffer, &map, GST_MAP_READ); gst_byte_reader_init (&reader, map.data, map.size); @@ -141,7 +142,6 @@ gst_png_parse_handle_frame (GstBaseParse * parse, for (;;) { guint32 length; guint32 code; - guint width, height; if (!gst_byte_reader_get_uint32_be (&reader, &length)) goto beach;