]> git.sesse.net Git - ffmpeg/commitdiff
do not allocate st->codec, it will be overwritten later; fix memleak
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 22 Jun 2008 02:15:13 +0000 (02:15 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Sun, 22 Jun 2008 02:15:13 +0000 (02:15 +0000)
Originally committed as revision 13870 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffserver.c

index a099296190d85c8f3002047f43c607cda96d3d7c..e0206b999e86fe2c32c22269f6efca4c427a4c48 100644 (file)
@@ -2047,7 +2047,6 @@ static int http_prepare_data(HTTPContext *c)
             AVStream *st;
             AVStream *src;
             st = av_mallocz(sizeof(AVStream));
-            st->codec= avcodec_alloc_context();
             c->fmt_ctx.streams[i] = st;
             /* if file or feed, then just take streams from FFStream struct */
             if (!c->stream->feed ||