Commit 97861f5b authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Set codec_type in new_output_stream

Ported from a change from anton khirnov to avconv
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent a0ce297b
......@@ -723,8 +723,10 @@ static OutputStream *new_output_stream(AVFormatContext *oc, int file_idx, AVCode
ost->index = idx;
ost->st = st;
ost->enc = codec;
if (codec)
if (codec) {
st->codec->codec_type = codec->type;
ost->opts = filter_codec_opts(codec_opts, codec->id, oc, st);
}
avcodec_get_context_defaults3(st->codec, codec);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment