From 1d6eeebe0803a37b51d4d10df4ec400300ba8bc3 Mon Sep 17 00:00:00 2001 From: Aurelien Jacobs Date: Fri, 9 Jan 2009 20:03:53 +0000 Subject: [PATCH] initialize AVFormatContext before calling av_write_header() Originally committed as revision 16505 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index 665c23101c..23bb64ca08 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3507,7 +3507,7 @@ static void build_feed_streams(void) } } if (!url_exist(feed->feed_filename)) { - AVFormatContext s1, *s = &s1; + AVFormatContext s1 = {0}, *s = &s1; if (feed->readonly) { http_log("Unable to create feed file '%s' as it is marked readonly\n",