summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ffmpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 3812f32109..820f159c62 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -321,7 +321,7 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
for(i=0;i<ic->nb_streams;i++) {
AVStream *st;
- st = av_mallocz(sizeof(AVFormatContext));
+ st = av_mallocz(sizeof(AVStream));
memcpy(st, ic->streams[i], sizeof(AVStream));
s->streams[i] = st;
}