[FFmpeg-cvslog] r23291 - trunk/ffserver.c
mstorsjo
subversion
Mon May 24 21:12:00 CEST 2010
Author: mstorsjo
Date: Mon May 24 21:12:00 2010
New Revision: 23291
Log:
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
Modified:
trunk/ffserver.c
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c Mon May 24 21:05:22 2010 (r23290)
+++ trunk/ffserver.c Mon May 24 21:12:00 2010 (r23291)
@@ -3381,7 +3381,6 @@ static int rtp_new_av_stream(HTTPContext
st = av_mallocz(sizeof(AVStream));
if (!st)
goto fail;
- st->codec= avcodec_alloc_context();
ctx->nb_streams = 1;
ctx->streams[0] = st;
More information about the ffmpeg-cvslog
mailing list