Commit 0509d453 authored by Alex Beregszaszi's avatar Alex Beregszaszi

set codec_type on init

Originally committed as revision 9721 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 43924f01
......@@ -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