diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2007-07-17 13:35:16 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2007-07-17 13:35:16 +0000 |
commit | 0509d453b57d7e0d4c2bb5323679e33b72ad7e62 (patch) | |
tree | b2643ce3041df60bac0c6b229577b002eeac33b1 /libavcodec/utils.c | |
parent | 43924f018b5e687c4198f602fcfd0ed367bf8779 (diff) | |
download | ffmpeg-0509d453b57d7e0d4c2bb5323679e33b72ad7e62.tar.gz |
set codec_type on init
Originally committed as revision 9721 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index bdc67c16af..f5f9f2f0d1 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -759,6 +759,7 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type) s->av_class= &av_codec_context_class; + s->codec_type = codec_type; if(codec_type == CODEC_TYPE_AUDIO) flags= AV_OPT_FLAG_AUDIO_PARAM; else if(codec_type == CODEC_TYPE_VIDEO) |