[vlc-devel] commit: avcodec: add codec_id/type to subtitles also (Ilkka Ollakka )

git version control git at videolan.org
Thu Sep 24 11:23:24 CEST 2009


vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Thu Sep 24 12:18:51 2009 +0300| [f4c18321edb87d1a1e266f43ef3b92f3fd54bec8] | committer: Ilkka Ollakka 

avcodec: add codec_id/type to subtitles also

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f4c18321edb87d1a1e266f43ef3b92f3fd54bec8
---

 modules/codec/avcodec/subtitle.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/avcodec/subtitle.c b/modules/codec/avcodec/subtitle.c
index 1e8047b..7574e8a 100644
--- a/modules/codec/avcodec/subtitle.c
+++ b/modules/codec/avcodec/subtitle.c
@@ -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;




More information about the vlc-devel mailing list