1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-06 08:29:25 +02:00

ffmpeg: Fix choose_pixel_fmt() so it uses the correct encoding context

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2014-06-01 17:08:17 +02:00
parent 00dcb10631
commit 758f929d21
3 changed files with 7 additions and 7 deletions

View File

@@ -1631,7 +1631,7 @@ static int read_ffserver_streams(OptionsContext *o, AVFormatContext *s, const ch
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO && !ost->stream_copy)
choose_sample_fmt(st, codec);
else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO && !ost->stream_copy)
choose_pixel_fmt(st, codec, st->codec->pix_fmt);
choose_pixel_fmt(st, st->codec, codec, st->codec->pix_fmt);
}
avformat_close_input(&ic);