Commit 2ae91c86 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec_get_context_defaults3: set codec_id

Fixes Ticket1996
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e2e9bee2
......@@ -102,6 +102,9 @@ int avcodec_get_context_defaults3(AVCodecContext *s, const AVCodec *codec)
s->av_class = &av_codec_context_class;
s->codec_type = codec ? codec->type : AVMEDIA_TYPE_UNKNOWN;
if (codec)
s->codec_id = codec->id;
if(s->codec_type == AVMEDIA_TYPE_AUDIO)
flags= AV_OPT_FLAG_AUDIO_PARAM;
else if(s->codec_type == AVMEDIA_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