diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-08-30 01:20:08 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-08-30 17:57:59 +0200 |
commit | 97861f5b0821d9c60272381661f545c209ea9ccc (patch) | |
tree | 8a591e7c8c0fd44d11f123b5ad3d7d4b96911a06 | |
parent | a0ce297b6965c8eb13bd76afac503dfc9ee49ee8 (diff) | |
download | ffmpeg-97861f5b0821d9c60272381661f545c209ea9ccc.tar.gz |
ffmpeg: Set codec_type in new_output_stream
Ported from a change from anton khirnov to avconv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |