diff --git a/ffmpeg.c b/ffmpeg.c index ee79e32039..12089413f0 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3962,6 +3962,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch ost = new_output_stream(o, s, codec->type); st = ost->st; avctx = st->codec; + ost->enc = codec; // FIXME: a more elegant solution is needed memcpy(st, ic->streams[i], sizeof(AVStream));