do not allocate st->codec, it will be overwritten later; fix memleak

Originally committed as revision 13870 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-06-22 02:15:13 +00:00
parent d2ce2f5e5c
commit 381ec67749

View File

@ -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 ||