ffmpeg: fix streaming to ffserver.

This commit is contained in:
Ronald S. Bultje 2011-06-14 15:35:05 -04:00
parent 9f63211175
commit 0be3736796
1 changed files with 1 additions and 0 deletions

View File

@ -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));