blob: a57fcd7d21a80750ba9fff31d853079bee8203c1 [file] [log] [blame]
Patrick Williams73bd93f2024-02-20 08:07:48 -06001From 8be0c6ac60c96e87d8aa443be9c431844dc3d92a Mon Sep 17 00:00:00 2001
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05002From: Andre McCurdy <armccurdy@gmail.com>
3Date: Tue, 26 Jan 2016 15:16:01 -0800
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00004Subject: [PATCH] fix maybe-uninitialized warnings when compiling with -Os
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05005
6Upstream-Status: Pending
7
8Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00009
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050010---
11 gst-libs/gst/codecparsers/gstvc1parser.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c
Andrew Geissler6ce62a22020-11-30 19:58:47 -060015index 2c60ced..e8226d8 100644
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050016--- a/gst-libs/gst/codecparsers/gstvc1parser.c
17+++ b/gst-libs/gst/codecparsers/gstvc1parser.c
Brad Bishop15ae2502019-06-18 21:44:24 -040018@@ -1730,7 +1730,7 @@ gst_vc1_parse_sequence_layer (const guint8 * data, gsize size,
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050019 GstVC1SeqLayer * seqlayer)
20 {
21 guint32 tmp;
22- guint8 tmp8;
23+ guint8 tmp8 = 0;
24 guint8 structA[8] = { 0, };
25 guint8 structB[12] = { 0, };
26 GstBitReader br;