From 909dbb07ebeb230d7603c8e431e0445c254cc6d0 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 1 Jun 2014 17:29:59 +0200 Subject: [PATCH] ffmpeg_opt: fix ffserver with the 2 encoder contexts Signed-off-by: Michael Niedermayer --- ffmpeg_opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg_opt.c b/ffmpeg_opt.c index d90edc1fbb3..aabcfc04468 100644 --- a/ffmpeg_opt.c +++ b/ffmpeg_opt.c @@ -1632,6 +1632,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch choose_sample_fmt(st, codec); else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && !ost->stream_copy) choose_pixel_fmt(st, st->codec, codec, st->codec->pix_fmt); + avcodec_copy_context(ost->enc_ctx, st->codec); } avformat_close_input(&ic); -- 2.39.5