From 9cc9a155100d4364ad02d50e89b313ec94195102 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Martin=20Storsj=C3=B6?= <martin@martin.st>
Date: Mon, 24 May 2010 19:12:00 +0000
Subject: [PATCH] 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
---
 ffserver.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ffserver.c b/ffserver.c
index 7719c7a8dac..42177350779 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;
 
-- 
GitLab