aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-24 19:12:00 +0000
committerMartin Storsjö <martin@martin.st>2010-05-24 19:12:00 +0000
commit9cc9a155100d4364ad02d50e89b313ec94195102 (patch)
treebd755096023cd140c4c8ef34b88531da7ba6e4b8
parentea4f8aabab2a5a7ebd232b45557c11c4c59c332b (diff)
downloadffmpeg-9cc9a155100d4364ad02d50e89b313ec94195102.tar.gz
ffserver: Fix another memory leak
Don't allocate st->codec, it will be overwritten by the memcpy a few lines further down. Fix by Howard Chu, hyc at highlandsun dot com Originally committed as revision 23291 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 7719c7a8da..4217735077 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -3381,7 +3381,6 @@ static int rtp_new_av_stream(HTTPContext *c,
st = av_mallocz(sizeof(AVStream));
if (!st)
goto fail;
- st->codec= avcodec_alloc_context();
ctx->nb_streams = 1;
ctx->streams[0] = st;