mpegaudioparse: initialze bpf variable
authorVineeth TM <vineeth.tm@samsung.com>
Mon, 22 Jun 2015 04:13:29 +0000 (13:13 +0900)
committerLuis de Bethencourt <luis.bg@samsung.com>
Mon, 22 Jun 2015 09:57:35 +0000 (10:57 +0100)
bpf variable might be used in cleanup without being intialized.

https://bugzilla.gnome.org/show_bug.cgi?id=751306

gst/audioparsers/gstmpegaudioparse.c

index 5372b39..88d31bf 100644 (file)
@@ -606,7 +606,7 @@ gst_mpeg_audio_parse_handle_frame (GstBaseParse * parse,
   GstMpegAudioParse *mp3parse = GST_MPEG_AUDIO_PARSE (parse);
   GstBuffer *buf = frame->buffer;
   GstByteReader reader;
-  gint off, bpf;
+  gint off, bpf = 0;
   gboolean lost_sync, draining, valid, caps_change;
   guint32 header;
   guint bitrate, layer, rate, channels, version, mode, crc;