Commit d82497f9 authored by Laurent Aimar's avatar Laurent Aimar

Cosmetics (use AV_VERSION_INT).

parent c0830666
...@@ -38,6 +38,10 @@ ...@@ -38,6 +38,10 @@
#endif #endif
#include "avcodec.h" #include "avcodec.h"
#ifndef AV_VERSION_INT
# define AV_VERSION_INT(a, b, c) ((a)<<16 | (b)<<8 | (c))
#endif
/***************************************************************************** /*****************************************************************************
* Codec fourcc -> ffmpeg_id mapping * Codec fourcc -> ffmpeg_id mapping
*****************************************************************************/ *****************************************************************************/
...@@ -433,7 +437,7 @@ static const struct ...@@ -433,7 +437,7 @@ static const struct
VIDEO_ES, "Windows Media Video 2" }, VIDEO_ES, "Windows Media Video 2" },
{ VLC_FOURCC('w','m','v','2'), CODEC_ID_WMV2, { VLC_FOURCC('w','m','v','2'), CODEC_ID_WMV2,
VIDEO_ES, "Windows Media Video 2" }, VIDEO_ES, "Windows Media Video 2" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(10<<8)+1) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 10, 1 )
{ VLC_FOURCC('W','M','V','3'), CODEC_ID_WMV3, { VLC_FOURCC('W','M','V','3'), CODEC_ID_WMV3,
VIDEO_ES, "Windows Media Video 3" }, VIDEO_ES, "Windows Media Video 3" },
{ VLC_FOURCC('w','m','v','3'), CODEC_ID_WMV3, { VLC_FOURCC('w','m','v','3'), CODEC_ID_WMV3,
...@@ -505,7 +509,7 @@ static const struct ...@@ -505,7 +509,7 @@ static const struct
VIDEO_ES, "On2's VP3 Video" }, VIDEO_ES, "On2's VP3 Video" },
/* On2 VP5, VP6 codecs */ /* On2 VP5, VP6 codecs */
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(14<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 14, 0 )
{ VLC_FOURCC('V','P','5',' '), CODEC_ID_VP5, { VLC_FOURCC('V','P','5',' '), CODEC_ID_VP5,
VIDEO_ES, "On2's VP5 Video" }, VIDEO_ES, "On2's VP5 Video" },
{ VLC_FOURCC('V','P','5','0'), CODEC_ID_VP5, { VLC_FOURCC('V','P','5','0'), CODEC_ID_VP5,
...@@ -518,14 +522,14 @@ static const struct ...@@ -518,14 +522,14 @@ static const struct
VIDEO_ES, "On2's VP6.2 Video (Flash)" }, VIDEO_ES, "On2's VP6.2 Video (Flash)" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(27<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 27, 0 )
{ VLC_FOURCC('V','P','6','0'), CODEC_ID_VP6, { VLC_FOURCC('V','P','6','0'), CODEC_ID_VP6,
VIDEO_ES, "On2's VP6.0 Video" }, VIDEO_ES, "On2's VP6.0 Video" },
{ VLC_FOURCC('V','P','6','1'), CODEC_ID_VP6, { VLC_FOURCC('V','P','6','1'), CODEC_ID_VP6,
VIDEO_ES, "On2's VP6.1 Video" }, VIDEO_ES, "On2's VP6.1 Video" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(47<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 47, 0 )
{ VLC_FOURCC('V','P','6','A'), CODEC_ID_VP6A, { VLC_FOURCC('V','P','6','A'), CODEC_ID_VP6A,
VIDEO_ES, "On2's VP6 A Video" }, VIDEO_ES, "On2's VP6 A Video" },
#endif #endif
...@@ -565,7 +569,7 @@ static const struct ...@@ -565,7 +569,7 @@ static const struct
VIDEO_ES, "Real Video 13" }, VIDEO_ES, "Real Video 13" },
{ VLC_FOURCC('r','v','1','3'), CODEC_ID_RV10, { VLC_FOURCC('r','v','1','3'), CODEC_ID_RV10,
VIDEO_ES, "Real Video 13" }, VIDEO_ES, "Real Video 13" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(15<<8)+1) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 15, 1 )
{ VLC_FOURCC('R','V','2','0'), CODEC_ID_RV20, { VLC_FOURCC('R','V','2','0'), CODEC_ID_RV20,
VIDEO_ES, "Real Video 20" }, VIDEO_ES, "Real Video 20" },
{ VLC_FOURCC('r','v','2','0'), CODEC_ID_RV20, { VLC_FOURCC('r','v','2','0'), CODEC_ID_RV20,
...@@ -602,7 +606,7 @@ static const struct ...@@ -602,7 +606,7 @@ static const struct
{ VLC_FOURCC('Z','M','B','V'), CODEC_ID_ZMBV, { VLC_FOURCC('Z','M','B','V'), CODEC_ID_ZMBV,
VIDEO_ES, "DosBox Capture Codec" }, VIDEO_ES, "DosBox Capture Codec" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(13<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 13, 0 )
{ VLC_FOURCC('V','M','n','c'), CODEC_ID_VMNC, { VLC_FOURCC('V','M','n','c'), CODEC_ID_VMNC,
VIDEO_ES, "VMware Video" }, VIDEO_ES, "VMware Video" },
#endif #endif
...@@ -659,21 +663,21 @@ static const struct ...@@ -659,21 +663,21 @@ static const struct
VIDEO_ES, "Indeo Video v2" }, VIDEO_ES, "Indeo Video v2" },
/* Flash Screen Video */ /* Flash Screen Video */
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(11<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 11, 0 )
{ VLC_FOURCC('F','S','V','1'), CODEC_ID_FLASHSV, { VLC_FOURCC('F','S','V','1'), CODEC_ID_FLASHSV,
VIDEO_ES, "Flash Screen Video" }, VIDEO_ES, "Flash Screen Video" },
#endif #endif
{ VLC_FOURCC('K','M','V','C'), CODEC_ID_KMVC, { VLC_FOURCC('K','M','V','C'), CODEC_ID_KMVC,
VIDEO_ES, "Karl Morton's Video Codec (Worms)" }, VIDEO_ES, "Karl Morton's Video Codec (Worms)" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(13<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 13, 0 )
{ VLC_FOURCC('N','U','V','1'), CODEC_ID_NUV, { VLC_FOURCC('N','U','V','1'), CODEC_ID_NUV,
VIDEO_ES, "Nuppel Video" }, VIDEO_ES, "Nuppel Video" },
{ VLC_FOURCC('R','J','P','G'), CODEC_ID_NUV, { VLC_FOURCC('R','J','P','G'), CODEC_ID_NUV,
VIDEO_ES, "Nuppel Video" }, VIDEO_ES, "Nuppel Video" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(8<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 8, 0 )
/* CODEC_ID_SMACKVIDEO */ /* CODEC_ID_SMACKVIDEO */
{ VLC_FOURCC('S','M','K','2'), CODEC_ID_SMACKVIDEO, { VLC_FOURCC('S','M','K','2'), CODEC_ID_SMACKVIDEO,
VIDEO_ES, "Smacker Video" }, VIDEO_ES, "Smacker Video" },
...@@ -682,12 +686,12 @@ static const struct ...@@ -682,12 +686,12 @@ static const struct
#endif #endif
/* Chinese AVS - Untested */ /* Chinese AVS - Untested */
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(8<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 8, 0 )
{ VLC_FOURCC('C','A','V','S'), CODEC_ID_CAVS, { VLC_FOURCC('C','A','V','S'), CODEC_ID_CAVS,
VIDEO_ES, "Chinese AVS" }, VIDEO_ES, "Chinese AVS" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 40, 0 )
/* Untested yet */ /* Untested yet */
{ VLC_FOURCC('A','V','d','n'), CODEC_ID_DNXHD, { VLC_FOURCC('A','V','d','n'), CODEC_ID_DNXHD,
VIDEO_ES, "DNxHD" }, VIDEO_ES, "DNxHD" },
...@@ -695,7 +699,7 @@ static const struct ...@@ -695,7 +699,7 @@ static const struct
{ VLC_FOURCC('8','B','P','S'), CODEC_ID_8BPS, { VLC_FOURCC('8','B','P','S'), CODEC_ID_8BPS,
VIDEO_ES, "8BPS" }, VIDEO_ES, "8BPS" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(52<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 52, 0 )
{ VLC_FOURCC('M','L','2','O'), CODEC_ID_MIMIC, { VLC_FOURCC('M','L','2','O'), CODEC_ID_MIMIC,
VIDEO_ES, "Mimic" }, VIDEO_ES, "Mimic" },
#endif #endif
...@@ -772,12 +776,12 @@ static const struct ...@@ -772,12 +776,12 @@ static const struct
{ VLC_FOURCC('M','J','L','S'), CODEC_ID_JPEGLS, { VLC_FOURCC('M','J','L','S'), CODEC_ID_JPEGLS,
VIDEO_ES, "PAM Image" }, VIDEO_ES, "PAM Image" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(0<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 0, 0 )
{ VLC_FOURCC('b','m','p',' '), CODEC_ID_BMP, { VLC_FOURCC('b','m','p',' '), CODEC_ID_BMP,
VIDEO_ES, "BMP Image" }, VIDEO_ES, "BMP Image" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+1) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 40, 1 )
{ VLC_FOURCC('t','i','f','f'), CODEC_ID_TIFF, { VLC_FOURCC('t','i','f','f'), CODEC_ID_TIFF,
VIDEO_ES, "TIFF Image" }, VIDEO_ES, "TIFF Image" },
{ VLC_FOURCC('g','i','f',' '), CODEC_ID_GIF, { VLC_FOURCC('g','i','f',' '), CODEC_ID_GIF,
...@@ -789,12 +793,12 @@ static const struct ...@@ -789,12 +793,12 @@ static const struct
{ VLC_FOURCC('M','T','G','A'), CODEC_ID_TARGA, { VLC_FOURCC('M','T','G','A'), CODEC_ID_TARGA,
VIDEO_ES, "Truevision Targa Image" }, VIDEO_ES, "Truevision Targa Image" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+3) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 40, 3 )
{ VLC_FOURCC('s','g','i',' '), CODEC_ID_SGI, { VLC_FOURCC('s','g','i',' '), CODEC_ID_SGI,
VIDEO_ES, "SGI Image" }, VIDEO_ES, "SGI Image" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(55<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 55, 0 )
{ VLC_FOURCC('d','r','a','c'), CODEC_ID_DIRAC, { VLC_FOURCC('d','r','a','c'), CODEC_ID_DIRAC,
VIDEO_ES, "Dirac" }, VIDEO_ES, "Dirac" },
#endif #endif
...@@ -833,12 +837,12 @@ static const struct ...@@ -833,12 +837,12 @@ static const struct
{ VLC_FOURCC('M','A','C','6'), CODEC_ID_MACE6, { VLC_FOURCC('M','A','C','6'), CODEC_ID_MACE6,
AUDIO_ES, "MACE-6 Audio" }, AUDIO_ES, "MACE-6 Audio" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(41<<8)+1) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 41, 1 )
/* MUSEPACK7 Audio */ /* MUSEPACK7 Audio */
{ VLC_FOURCC('M','P','C',' '), CODEC_ID_MUSEPACK7, { VLC_FOURCC('M','P','C',' '), CODEC_ID_MUSEPACK7,
AUDIO_ES, "MUSEPACK7 Audio" }, AUDIO_ES, "MUSEPACK7 Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(48<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 48, 0 )
/* MUSEPACK8 Audio */ /* MUSEPACK8 Audio */
{ VLC_FOURCC('M','P','C','K'), CODEC_ID_MUSEPACK8, { VLC_FOURCC('M','P','C','K'), CODEC_ID_MUSEPACK8,
AUDIO_ES, "MUSEPACK8 Audio" }, AUDIO_ES, "MUSEPACK8 Audio" },
...@@ -874,7 +878,7 @@ static const struct ...@@ -874,7 +878,7 @@ static const struct
{ VLC_FOURCC('a','5','2','b'), CODEC_ID_AC3, /* VLC specific hack */ { VLC_FOURCC('a','5','2','b'), CODEC_ID_AC3, /* VLC specific hack */
AUDIO_ES, "A52 Audio (aka AC3)" }, AUDIO_ES, "A52 Audio (aka AC3)" },
#if LIBAVCODEC_VERSION_INT >= ((52<<16)+(0<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 52, 0, 0 )
{ VLC_FOURCC('e','a','c','3'), CODEC_ID_EAC3, { VLC_FOURCC('e','a','c','3'), CODEC_ID_EAC3,
AUDIO_ES, "A/52 B Audio (aka E-AC3)" }, AUDIO_ES, "A/52 B Audio (aka E-AC3)" },
#endif #endif
...@@ -907,7 +911,7 @@ static const struct ...@@ -907,7 +911,7 @@ static const struct
{ VLC_FOURCC('R','o','Q','a'), CODEC_ID_ROQ_DPCM, { VLC_FOURCC('R','o','Q','a'), CODEC_ID_ROQ_DPCM,
AUDIO_ES, "Id RoQ DPCM Audio" }, AUDIO_ES, "Id RoQ DPCM Audio" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(27<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 27, 0 )
/* DCIN Audio */ /* DCIN Audio */
{ VLC_FOURCC('D','C','I','A'), CODEC_ID_DSICINAUDIO, { VLC_FOURCC('D','C','I','A'), CODEC_ID_DSICINAUDIO,
AUDIO_ES, "Delphine CIN Audio" }, AUDIO_ES, "Delphine CIN Audio" },
...@@ -947,25 +951,25 @@ static const struct ...@@ -947,25 +951,25 @@ static const struct
{ VLC_FOURCC('a','l','a','c'), CODEC_ID_ALAC, { VLC_FOURCC('a','l','a','c'), CODEC_ID_ALAC,
AUDIO_ES, "Apple Lossless Audio Codec" }, AUDIO_ES, "Apple Lossless Audio Codec" },
#if LIBAVCODEC_VERSION_INT >= ((50<<16)+(0<<8)+1) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 50, 0, 1 )
/* QDM2 */ /* QDM2 */
{ VLC_FOURCC('Q','D','M','2'), CODEC_ID_QDM2, { VLC_FOURCC('Q','D','M','2'), CODEC_ID_QDM2,
AUDIO_ES, "QDM2 Audio" }, AUDIO_ES, "QDM2 Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(0<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 0, 0 )
/* COOK */ /* COOK */
{ VLC_FOURCC('c','o','o','k'), CODEC_ID_COOK, { VLC_FOURCC('c','o','o','k'), CODEC_ID_COOK,
AUDIO_ES, "Cook Audio" }, AUDIO_ES, "Cook Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(4<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 4, 0 )
/* TTA: The Lossless True Audio */ /* TTA: The Lossless True Audio */
{ VLC_FOURCC('T','T','A','1'), CODEC_ID_TTA, { VLC_FOURCC('T','T','A','1'), CODEC_ID_TTA,
AUDIO_ES, "The Lossless True Audio" }, AUDIO_ES, "The Lossless True Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(8<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 8, 0 )
/* Shorten */ /* Shorten */
{ VLC_FOURCC('s','h','n',' '), CODEC_ID_SHORTEN, { VLC_FOURCC('s','h','n',' '), CODEC_ID_SHORTEN,
AUDIO_ES, "Shorten Lossless Audio" }, AUDIO_ES, "Shorten Lossless Audio" },
...@@ -973,21 +977,21 @@ static const struct ...@@ -973,21 +977,21 @@ static const struct
AUDIO_ES, "Shorten Lossless Audio" }, AUDIO_ES, "Shorten Lossless Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(16<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 16, 0 )
{ VLC_FOURCC('w','v','p','k'), CODEC_ID_WAVPACK, { VLC_FOURCC('w','v','p','k'), CODEC_ID_WAVPACK,
AUDIO_ES, "WavPack" }, AUDIO_ES, "WavPack" },
{ VLC_FOURCC('W','V','P','K'), CODEC_ID_WAVPACK, { VLC_FOURCC('W','V','P','K'), CODEC_ID_WAVPACK,
AUDIO_ES, "WavPack" }, AUDIO_ES, "WavPack" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(34<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 34, 0 )
{ VLC_FOURCC('g','s','m',' '), CODEC_ID_GSM, { VLC_FOURCC('g','s','m',' '), CODEC_ID_GSM,
AUDIO_ES, "GSM Audio" }, AUDIO_ES, "GSM Audio" },
{ VLC_FOURCC('g','s','m','s'), CODEC_ID_GSM_MS, { VLC_FOURCC('g','s','m','s'), CODEC_ID_GSM_MS,
AUDIO_ES, "Microsoft GSM Audio" }, AUDIO_ES, "Microsoft GSM Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(40<<8)+4) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 40, 4 )
{ VLC_FOURCC('a','t','r','c'), CODEC_ID_ATRAC3, { VLC_FOURCC('a','t','r','c'), CODEC_ID_ATRAC3,
AUDIO_ES, "atrac 3" }, AUDIO_ES, "atrac 3" },
{ VLC_FOURCC(0x70,0x2,0x0,0x0), CODEC_ID_ATRAC3, { VLC_FOURCC(0x70,0x2,0x0,0x0), CODEC_ID_ATRAC3,
...@@ -997,21 +1001,21 @@ static const struct ...@@ -997,21 +1001,21 @@ static const struct
{ VLC_FOURCC('S','O','N','C'), CODEC_ID_SONIC, { VLC_FOURCC('S','O','N','C'), CODEC_ID_SONIC,
AUDIO_ES, "Sonic" }, AUDIO_ES, "Sonic" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(34<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 34, 0 )
{ VLC_FOURCC(0x1,0x4,0x0,0x0), CODEC_ID_IMC, { VLC_FOURCC(0x1,0x4,0x0,0x0), CODEC_ID_IMC,
AUDIO_ES, "IMC" }, AUDIO_ES, "IMC" },
#endif #endif
{ VLC_FOURCC(0x22,0x0,0x0,0x0), CODEC_ID_TRUESPEECH, { VLC_FOURCC(0x22,0x0,0x0,0x0), CODEC_ID_TRUESPEECH,
AUDIO_ES, "TrueSpeech" }, AUDIO_ES, "TrueSpeech" },
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(46<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 46, 0 )
{ VLC_FOURCC('N','E','L','L'), CODEC_ID_NELLYMOSER, { VLC_FOURCC('N','E','L','L'), CODEC_ID_NELLYMOSER,
AUDIO_ES, "NellyMoser ASAO" }, AUDIO_ES, "NellyMoser ASAO" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(44<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 44, 0 )
{ VLC_FOURCC('A','P','E',' '), CODEC_ID_APE, { VLC_FOURCC('A','P','E',' '), CODEC_ID_APE,
AUDIO_ES, "Monkey's Audio" }, AUDIO_ES, "Monkey's Audio" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(58<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 58, 0 )
{ VLC_FOURCC('m','l','p',' '), CODEC_ID_MLP, { VLC_FOURCC('m','l','p',' '), CODEC_ID_MLP,
AUDIO_ES, "MLP/TrueHD Audio" }, AUDIO_ES, "MLP/TrueHD Audio" },
#endif #endif
...@@ -1052,7 +1056,7 @@ static const struct ...@@ -1052,7 +1056,7 @@ static const struct
AUDIO_ES, "PCM ULAW" }, AUDIO_ES, "PCM ULAW" },
/* Subtitle streams */ /* Subtitle streams */
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(41<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 41, 0 )
/* Before this version, subs were too experimental */ /* Before this version, subs were too experimental */
{ VLC_FOURCC('s','p','u',' '), CODEC_ID_DVD_SUBTITLE, { VLC_FOURCC('s','p','u',' '), CODEC_ID_DVD_SUBTITLE,
SPU_ES, "DVD Subtitles" }, SPU_ES, "DVD Subtitles" },
...@@ -1063,7 +1067,7 @@ static const struct ...@@ -1063,7 +1067,7 @@ static const struct
{ VLC_FOURCC('x','s','u','b'), CODEC_ID_XSUB, { VLC_FOURCC('x','s','u','b'), CODEC_ID_XSUB,
SPU_ES, "DivX XSUB subtitles" }, SPU_ES, "DivX XSUB subtitles" },
#endif #endif
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(50<<8)+0) #if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT( 51, 50, 0 )
{ VLC_FOURCC('s','s','a',' '), CODEC_ID_SSA, { VLC_FOURCC('s','s','a',' '), CODEC_ID_SSA,
SPU_ES, "SubStation Alpha subtitles" }, SPU_ES, "SubStation Alpha subtitles" },
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment