Commit f4c18321 authored by Ilkka Ollakka's avatar Ilkka Ollakka

avcodec: add codec_id/type to subtitles also

parent c45695d4
...@@ -69,6 +69,9 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context, ...@@ -69,6 +69,9 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
if (!sys) if (!sys)
return VLC_ENOMEM; return VLC_ENOMEM;
codec->type = CODEC_TYPE_SUBTITLE;
context->codec_type = CODEC_TYPE_SUBTITLE;
context->codec_id = codec_id;
sys->p_context = context; sys->p_context = context;
sys->p_codec = codec; sys->p_codec = codec;
sys->i_codec_id = codec_id; sys->i_codec_id = codec_id;
......
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