[MPlayer-cvslog] r35118 - trunk/libmpdemux/demux_lavf.c

reimar subversion at mplayerhq.hu
Sat Aug 25 12:52:00 CEST 2012


Author: reimar
Date: Sat Aug 25 12:52:00 2012
New Revision: 35118

Log:
Support subrip format subtitles.

Patch by Philip Langdale [philipl overt org].

Modified:
   trunk/libmpdemux/demux_lavf.c

Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c	Sat Aug 25 12:50:50 2012	(r35117)
+++ trunk/libmpdemux/demux_lavf.c	Sat Aug 25 12:52:00 2012	(r35118)
@@ -427,7 +427,8 @@ static void handle_stream(demuxer_t *dem
         case AVMEDIA_TYPE_SUBTITLE:{
             sh_sub_t* sh_sub;
             char type;
-            if(codec->codec_id == CODEC_ID_TEXT)
+            if(codec->codec_id == CODEC_ID_TEXT ||
+               codec->codec_id == AV_CODEC_ID_SUBRIP)
                 type = 't';
             else if(codec->codec_id == CODEC_ID_MOV_TEXT)
                 type = 'm';


More information about the MPlayer-cvslog mailing list