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

Michael Niedermayer michaelni at gmx.at
Tue Nov 6 21:22:25 CET 2012


Fixed CID703833
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavformat/sbgdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/sbgdec.c b/libavformat/sbgdec.c
index 93c8cb3..11a47cf 100644
--- a/libavformat/sbgdec.c
+++ b/libavformat/sbgdec.c
@@ -506,7 +506,8 @@ static int parse_fade(struct sbg_parser *p, struct sbg_fade *fr)
         f.out = SBG_FADE_ADAPT;
     else
         return AVERROR_INVALIDDATA;
-    *fr = f;
+    fr->in  = f.in;
+    fr->out = f.out;
     return 1;
 }
 
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list