Browse code

initialize AVFormatContext before calling av_write_header()

Originally committed as revision 16505 to svn://svn.ffmpeg.org/ffmpeg/trunk

Aurelien Jacobs authored on 2009/01/10 05:03:53
Showing 1 changed files
... ...
@@ -3507,7 +3507,7 @@ static void build_feed_streams(void)
3507 3507
             }
3508 3508
         }
3509 3509
         if (!url_exist(feed->feed_filename)) {
3510
-            AVFormatContext s1, *s = &s1;
3510
+            AVFormatContext s1 = {0}, *s = &s1;
3511 3511
 
3512 3512
             if (feed->readonly) {
3513 3513
                 http_log("Unable to create feed file '%s' as it is marked readonly\n",