[FFmpeg-cvslog] sbgdec: dont set slide to a uninitialized value

Nicolas George git at videolan.org
Tue Nov 6 21:52:56 CET 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Nov  6 21:14:45 2012 +0100| [e9b8523d52ca84d5012168db24fec2d50e73cf22] | committer: Michael Niedermayer

sbgdec: dont set slide to a uninitialized value

Fixed CID703833
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e9b8523d52ca84d5012168db24fec2d50e73cf22
---

 libavformat/sbgdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index 93c8cb3..c0987a1 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -488,7 +488,7 @@ static int parse_timestamp(struct sbg_parser *p,
 
 static int parse_fade(struct sbg_parser *p, struct sbg_fade *fr)
 {
-    struct sbg_fade f;
+    struct sbg_fade f = {0};
 
     if (lex_char(p, '<'))
         f.in = SBG_FADE_SILENCE;



More information about the ffmpeg-cvslog mailing list