projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
331fca4
)
dcaparse: initialize size variable
author
Vineeth TM
<vineeth.tm@samsung.com>
Mon, 22 Jun 2015 04:16:08 +0000
(13:16 +0900)
committer
Luis de Bethencourt
<luis.bg@samsung.com>
Mon, 22 Jun 2015 09:58:35 +0000
(10:58 +0100)
size can be used in cleanup without being initialized. Hence
setting it to 0 when declaring
https://bugzilla.gnome.org/show_bug.cgi?id=751306
gst/audioparsers/gstdcaparse.c
patch
|
blob
|
history
diff --git
a/gst/audioparsers/gstdcaparse.c
b/gst/audioparsers/gstdcaparse.c
index
4b1a6ea
..
de73856
100644
(file)
--- a/
gst/audioparsers/gstdcaparse.c
+++ b/
gst/audioparsers/gstdcaparse.c
@@
-324,7
+324,7
@@
gst_dca_parse_handle_frame (GstBaseParse * parse,
gboolean parser_in_sync;
gboolean terminator;
guint32 sync = 0;
- guint size, rate, chans, num_blocks, samples_per_block, depth;
+ guint size
= 0
, rate, chans, num_blocks, samples_per_block, depth;
gint block_size;
gint endianness;
gint off = -1;