[MPlayer-cvslog] r35814 - trunk/libmpdemux/demux_lavf.c
diego
subversion at mplayerhq.hu
Tue Jan 22 00:05:17 CET 2013
Author: diego
Date: Tue Jan 22 00:05:17 2013
New Revision: 35814
Log:
demux_lavf: Fix CODEC_ID availability ifdefs and add a missing one
Modified:
trunk/libmpdemux/demux_lavf.c
Modified: trunk/libmpdemux/demux_lavf.c
==============================================================================
--- trunk/libmpdemux/demux_lavf.c Tue Jan 22 00:05:14 2013 (r35813)
+++ trunk/libmpdemux/demux_lavf.c Tue Jan 22 00:05:17 2013 (r35814)
@@ -433,8 +433,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 ||
- codec->codec_id == AV_CODEC_ID_SUBRIP)
+ if (codec->codec_id == AV_CODEC_ID_TEXT
+#if LIBAVUTIL_VERSION_MICRO >= 100
+ || codec->codec_id == AV_CODEC_ID_SUBRIP
+#endif /* LIBAVUTIL_VERSION_MICRO >= 100 */
+ )
type = 't';
else if (codec->codec_id == AV_CODEC_ID_MOV_TEXT)
type = 'm';
@@ -450,10 +453,10 @@ static void handle_stream(demuxer_t *dem
type = 'd';
else if (codec->codec_id == AV_CODEC_ID_HDMV_PGS_SUBTITLE)
type = 'p';
-#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(54, 14, 100)
+#if LIBAVUTIL_VERSION_MICRO >= 100
else if (codec->codec_id == AV_CODEC_ID_EIA_608)
type = 'c';
-#endif
+#endif /* LIBAVUTIL_VERSION_MICRO >= 100 */
else if(codec->codec_tag == MKTAG('c', '6', '0', '8'))
type = 'c';
else
More information about the MPlayer-cvslog
mailing list