aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-01-09 20:03:53 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-01-09 20:03:53 +0000
commit1d6eeebe0803a37b51d4d10df4ec400300ba8bc3 (patch)
treed3312078fb8be1dcf771adf487fc7effc651b48b
parent49186206eb7fccf54c2733209bc025051c16fb79 (diff)
downloadffmpeg-1d6eeebe0803a37b51d4d10df4ec400300ba8bc3.tar.gz
initialize AVFormatContext before calling av_write_header()
Originally committed as revision 16505 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
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",