Skip to content

Instantly share code, notes, and snippets.

Created October 10, 2012 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/3865504 to your computer and use it in GitHub Desktop.
Save anonymous/3865504 to your computer and use it in GitHub Desktop.
stdin
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