[FFmpeg-cvslog] ffmpeg: Set codec_type in new_output_stream
Michael Niedermayer
git at videolan.org
Tue Aug 30 18:14:58 CEST 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 30 01:20:08 2011 +0200| [97861f5b0821d9c60272381661f545c209ea9ccc] | committer: Michael Niedermayer
ffmpeg: Set codec_type in new_output_stream
Ported from a change from anton khirnov to avconv
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=97861f5b0821d9c60272381661f545c209ea9ccc
---
ffmpeg.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index a4bd4bb..1fe2c80 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);
More information about the ffmpeg-cvslog
mailing list