diff options
Diffstat (limited to 'libavcodec/options.c')
-rw-r--r-- | libavcodec/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index fdc8a71337..a08ed98cce 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -539,6 +539,7 @@ static const AVClass av_codec_context_class = { #if FF_API_ALLOC_CONTEXT void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){ avcodec_get_context_defaults3(s, NULL); + s->codec_type = codec_type; } #endif |