diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-24 23:12:00 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-24 23:12:00 +0400 |
commit | 9cc9a155100d4364ad02d50e89b313ec94195102 (patch) | |
tree | bd755096023cd140c4c8ef34b88531da7ba6e4b8 /ffserver.c | |
parent | ea4f8aabab2a5a7ebd232b45557c11c4c59c332b (diff) |
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
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 1 |
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; |