You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
ffmpeg: fix streaming to ffserver.
This commit is contained in:
1
ffmpeg.c
1
ffmpeg.c
@ -684,6 +684,7 @@ static int read_ffserver_streams(AVFormatContext *s, const char *filename)
|
|||||||
// FIXME: a more elegant solution is needed
|
// FIXME: a more elegant solution is needed
|
||||||
st = av_mallocz(sizeof(AVStream));
|
st = av_mallocz(sizeof(AVStream));
|
||||||
memcpy(st, ic->streams[i], sizeof(AVStream));
|
memcpy(st, ic->streams[i], sizeof(AVStream));
|
||||||
|
st->info = NULL;
|
||||||
st->codec = avcodec_alloc_context();
|
st->codec = avcodec_alloc_context();
|
||||||
if (!st->codec) {
|
if (!st->codec) {
|
||||||
print_error(filename, AVERROR(ENOMEM));
|
print_error(filename, AVERROR(ENOMEM));
|
||||||
|
Reference in New Issue
Block a user