Browse Source

ffmpeg_opt: fix ffserver with the 2 encoder contexts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.3
Michael Niedermayer 11 years ago
parent
commit
909dbb07eb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      ffmpeg_opt.c

+ 1
- 0
ffmpeg_opt.c View File

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


Loading…
Cancel
Save