summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-06-14 15:35:05 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2011-06-14 15:59:15 -0400
commit0be3736796b1651ad785c9ba68d26c2276cc074c (patch)
tree7b39186057f1ee513a9fa63b70867468d761efb5 /ffmpeg.c
parent9f6321117565f9e673c8c6dbfb4104c09272704e (diff)
ffmpeg: fix streaming to ffserver.
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 cbcdba8c64..04672cc831 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -684,6 +684,7 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
// FIXME: a more elegant solution is needed
st = av_mallocz(sizeof(AVStream));
memcpy(st, ic->streams[i], sizeof(AVStream));
+ st->info = NULL;
st->codec = avcodec_alloc_context();
if (!st->codec) {
print_error(filename, AVERROR(ENOMEM));