| ... | ... |
@@ -703,6 +703,7 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename) |
| 703 | 703 |
return err; |
| 704 | 704 |
/* copy stream format */ |
| 705 | 705 |
s->nb_streams = 0; |
| 706 |
+ s->streams = av_mallocz(sizeof(*s->streams) * ic->nb_streams); |
|
| 706 | 707 |
for(i=0;i<ic->nb_streams;i++) {
|
| 707 | 708 |
AVStream *st; |
| 708 | 709 |
AVCodec *codec; |
| ... | ... |
@@ -2229,6 +2229,7 @@ static int http_prepare_data(HTTPContext *c) |
| 2229 | 2229 |
av_metadata_set2(&c->fmt_ctx.metadata, "copyright", c->stream->copyright, 0); |
| 2230 | 2230 |
av_metadata_set2(&c->fmt_ctx.metadata, "title" , c->stream->title , 0); |
| 2231 | 2231 |
|
| 2232 |
+ c->fmt_ctx.streams = av_mallocz(sizeof(*c->fmt_ctx.streams) * c->stream->nb_streams); |
|
| 2232 | 2233 |
for(i=0;i<c->stream->nb_streams;i++) {
|
| 2233 | 2234 |
AVStream *st; |
| 2234 | 2235 |
AVStream *src; |