Commit f5978124 authored by bellard's avatar bellard

added av_set_parameters()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1441 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7b591842
...@@ -2113,6 +2113,7 @@ static int http_prepare_data(HTTPContext *c) ...@@ -2113,6 +2113,7 @@ static int http_prepare_data(HTTPContext *c)
} }
c->fmt_ctx.pb.is_streamed = 1; c->fmt_ctx.pb.is_streamed = 1;
av_set_parameters(&c->fmt_ctx, NULL);
av_write_header(&c->fmt_ctx); av_write_header(&c->fmt_ctx);
len = url_close_dyn_buf(&c->fmt_ctx.pb, &c->pb_buffer); len = url_close_dyn_buf(&c->fmt_ctx.pb, &c->pb_buffer);
...@@ -3143,6 +3144,7 @@ static int rtp_new_av_stream(HTTPContext *c, ...@@ -3143,6 +3144,7 @@ static int rtp_new_av_stream(HTTPContext *c,
/* XXX: close stream */ /* XXX: close stream */
goto fail; goto fail;
} }
av_set_parameters(ctx, NULL);
if (av_write_header(ctx) < 0) { if (av_write_header(ctx) < 0) {
fail: fail:
if (h) if (h)
...@@ -3437,6 +3439,7 @@ void build_feed_streams(void) ...@@ -3437,6 +3439,7 @@ void build_feed_streams(void)
st = feed->streams[i]; st = feed->streams[i];
s->streams[i] = st; s->streams[i] = st;
} }
av_set_parameters(s, NULL);
av_write_header(s); av_write_header(s);
/* XXX: need better api */ /* XXX: need better api */
av_freep(&s->priv_data); av_freep(&s->priv_data);
......
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