[FFmpeg-devel] [PATCH] ffmpeg.c: Fixed uninitialized variable error reported by valgrind.
Chiranjeevi Melam
cmelam at rgbnetworks.com
Wed Aug 31 23:33:51 CEST 2011
Fixed uninitialized variable error reported by valgrind.
diff --git a/ffmpeg/ffmpeg_orig.c b/ffmpeg/ffmpeg_new.c
index 95b3252..e629b95 100755
--- a/ffmpeg/ffmpeg_orig.c
+++ b/ffmpeg/ffmpeg_new.c
@@ -461,6 +461,7 @@ static void term_init(void)
if(!run_as_daemon){
struct termios tty;
+ memset(&tty, 0, sizeof(tty));
tcgetattr (0, &tty);
oldtty = tty;
atexit(term_exit);
More information about the ffmpeg-devel
mailing list