initialize AVFormatContext before calling av_write_header()

Originally committed as revision 16505 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Aurelien Jacobs 2009-01-09 20:03:53 +00:00
parent 49186206eb
commit 1d6eeebe08

View File

@ -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",