aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-22 02:15:13 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-22 02:15:13 +0000
commit381ec67749542ae550b38f0d3809de9e25c437d8 (patch)
tree8ff22d098a73d71aa612570d0194811fe5c8cd04
parentd2ce2f5e5c7578c29c87565937a841aeffe11e76 (diff)
downloadffmpeg-381ec67749542ae550b38f0d3809de9e25c437d8.tar.gz
do not allocate st->codec, it will be overwritten later; fix memleak
Originally committed as revision 13870 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index a099296190..e0206b999e 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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 ||