diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-02-12 18:11:34 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2013-02-12 18:11:34 -0500 |
commit | f25b0eda0928af67a7b4d0c98f7489b1fadf44f8 (patch) | |
tree | 40b0df6ed585331f4e3c7b4401166949c79f01ac | |
parent | 41afff88e01bf54d6c6386deb3d173a22a1a87e2 (diff) |
pngparse: Declare the width/height outside the loop
Also initialize them to make gcc happy
-rw-r--r-- | gst/videoparsers/gstpngparse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videoparsers/gstpngparse.c b/gst/videoparsers/gstpngparse.c index f4fa84efe..06b42500f 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; |