You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
ffmpeg_opt: fix ffserver with the 2 encoder contexts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1632,6 +1632,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
|
|||||||
choose_sample_fmt(st, codec);
|
choose_sample_fmt(st, codec);
|
||||||
else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && !ost->stream_copy)
|
else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && !ost->stream_copy)
|
||||||
choose_pixel_fmt(st, st->codec, codec, st->codec->pix_fmt);
|
choose_pixel_fmt(st, st->codec, codec, st->codec->pix_fmt);
|
||||||
|
avcodec_copy_context(ost->enc_ctx, st->codec);
|
||||||
}
|
}
|
||||||
|
|
||||||
avformat_close_input(&ic);
|
avformat_close_input(&ic);
|
||||||
|
Reference in New Issue
Block a user