]> git.sesse.net Git - vlc/commitdiff
avcodec: add codec_id/type to subtitles also
authorIlkka Ollakka <ileoo@videolan.org>
Thu, 24 Sep 2009 09:18:51 +0000 (12:18 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Thu, 24 Sep 2009 09:18:51 +0000 (12:18 +0300)
modules/codec/avcodec/subtitle.c

index 1e8047b1a98e318e3e9f01e8ec3278b9964ea275..7574e8a61211fe47d67268aa91f458cc654bf04f 100644 (file)
@@ -69,6 +69,9 @@ int InitSubtitleDec(decoder_t *dec, AVCodecContext *context,
     if (!sys)
         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_codec = codec;
     sys->i_codec_id = codec_id;