aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-30 01:20:08 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-30 17:57:59 +0200
commit97861f5b0821d9c60272381661f545c209ea9ccc (patch)
tree8a591e7c8c0fd44d11f123b5ad3d7d4b96911a06
parenta0ce297b6965c8eb13bd76afac503dfc9ee49ee8 (diff)
downloadffmpeg-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index a4bd4bba4c..1fe2c80882 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);