mirror of https://git.ffmpeg.org/ffmpeg.git
set codec_type on init
Originally committed as revision 9721 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
43924f018b
commit
0509d453b5
|
@ -759,6 +759,7 @@ void avcodec_get_context_defaults2(AVCodecContext *s, enum CodecType codec_type)
|
||||||
|
|
||||||
s->av_class= &av_codec_context_class;
|
s->av_class= &av_codec_context_class;
|
||||||
|
|
||||||
|
s->codec_type = codec_type;
|
||||||
if(codec_type == CODEC_TYPE_AUDIO)
|
if(codec_type == CODEC_TYPE_AUDIO)
|
||||||
flags= AV_OPT_FLAG_AUDIO_PARAM;
|
flags= AV_OPT_FLAG_AUDIO_PARAM;
|
||||||
else if(codec_type == CODEC_TYPE_VIDEO)
|
else if(codec_type == CODEC_TYPE_VIDEO)
|
||||||
|
|
Loading…
Reference in New Issue