Commit 6b18ca6b authored by alex's avatar alex

set codec_type on init

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@9721 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8882506e
......@@ -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)
......
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