[FFmpeg-cvslog] r13870 - trunk/ffserver.c

bcoudurier subversion
Sun Jun 22 04:15:17 CEST 2008


Author: bcoudurier
Date: Sun Jun 22 04:15:13 2008
New Revision: 13870

Log:
dont allo st->codec it will be overwritten later, fix memleak

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Sun Jun 22 04:15:13 2008
@@ -2047,7 +2047,6 @@ static int http_prepare_data(HTTPContext
             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 ||




More information about the ffmpeg-cvslog mailing list