summaryrefslogtreecommitdiff
blob: 2e357db34785604de712d61f6c706eff203b7360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: MPlayer-1.1.1/libmpdemux/demux_lavf.c
===================================================================
--- MPlayer-1.1.1.orig/libmpdemux/demux_lavf.c
+++ MPlayer-1.1.1/libmpdemux/demux_lavf.c
@@ -423,7 +423,11 @@ static void handle_stream(demuxer_t *dem
         case AVMEDIA_TYPE_SUBTITLE:{
             sh_sub_t* sh_sub;
             char type;
-            if(codec->codec_id == AV_CODEC_ID_TEXT)
+            if(codec->codec_id == AV_CODEC_ID_TEXT
+#if LIBAVUTIL_VERSION_MICRO >= 100
+		|| codec->codec_id == AV_CODEC_ID_SUBRIP
+#endif
+	    )
                 type = 't';
             else if(codec->codec_id == AV_CODEC_ID_MOV_TEXT)
                 type = 'm';