aboutsummaryrefslogtreecommitdiffstats
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMaksym Veremeyenko <verem@m1stereo.tv>2011-05-21 04:39:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-05-21 04:39:20 +0200
commitab1c19efc59cbcb1ff1b0c076cde01b87837f21e (patch)
tree2682bf181e3c44845ab770d4470f70887d1390b7 /ffmpeg.c
parent0eed5016a27ec2f6990c426e79eb28fbf370f613 (diff)
downloadffmpeg-ab1c19efc59cbcb1ff1b0c076cde01b87837f21e.tar.gz
fix ffserver's SIGSEGV
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index fb644adc18..38297cc7f4 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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;