Created
October 10, 2012 12:59
-
-
Save anonymous/3865504 to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case AVMEDIA_TYPE_SUBTITLE: { | |
sh_sub_t *sh_sub; | |
char type; | |
/* only support text subtitles for now */ | |
if (codec->codec_id == CODEC_ID_TEXT) | |
type = 't'; | |
else if (codec->codec_id == CODEC_ID_MOV_TEXT) | |
type = 'm'; | |
else if (codec->codec_id == CODEC_ID_SSA) | |
type = 'a'; | |
else if (codec->codec_id == CODEC_ID_DVD_SUBTITLE) | |
type = 'v'; | |
else if (codec->codec_id == CODEC_ID_XSUB) | |
type = 'x'; | |
else if (codec->codec_id == CODEC_ID_DVB_SUBTITLE) | |
type = 'b'; | |
else if (codec->codec_id == CODEC_ID_DVB_TELETEXT) | |
type = 'd'; | |
else if (codec->codec_id == CODEC_ID_HDMV_PGS_SUBTITLE) | |
type = 'p'; | |
else | |
break; | |
sh_sub = new_sh_sub_sid(demuxer, i, priv->sub_streams); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment