diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 02:15:13 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-22 02:15:13 +0000 |
commit | 381ec67749542ae550b38f0d3809de9e25c437d8 (patch) | |
tree | 8ff22d098a73d71aa612570d0194811fe5c8cd04 | |
parent | d2ce2f5e5c7578c29c87565937a841aeffe11e76 (diff) | |
download | ffmpeg-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.c | 1 |
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 || |