Commit 381ec677 authored by Baptiste Coudurier's avatar Baptiste Coudurier

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

Originally committed as revision 13870 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d2ce2f5e
......@@ -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 ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment