fix ffserver's SIGSEGV

This commit is contained in:
Maksym Veremeyenko
2011-05-21 04:39:20 +02:00
committed by Michael Niedermayer
parent 0eed5016a2
commit ab1c19efc5
2 changed files with 2 additions and 0 deletions

View File

@@ -703,6 +703,7 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
return err;
/* copy stream format */
s->nb_streams = 0;
s->streams = av_mallocz(sizeof(*s->streams) * ic->nb_streams);
for(i=0;i<ic->nb_streams;i++) {
AVStream *st;
AVCodec *codec;