Add extradata to sh_sub_t.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25680 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2008-01-11 21:45:10 +00:00
parent 4c512b27c3
commit 18e9531401
2 changed files with 3 additions and 0 deletions

View File

@ -238,6 +238,7 @@ sh_sub_t *new_sh_sub_sid(demuxer_t *demuxer, int id, int sid) {
void free_sh_sub(sh_sub_t *sh) { void free_sh_sub(sh_sub_t *sh) {
mp_msg(MSGT_DEMUXER, MSGL_DBG2, "DEMUXER: freeing sh_sub at %p\n", sh); mp_msg(MSGT_DEMUXER, MSGL_DBG2, "DEMUXER: freeing sh_sub at %p\n", sh);
if (sh->extradata) free(sh->extradata);
free(sh); free(sh);
} }

View File

@ -100,6 +100,8 @@ typedef struct {
int custom_colors; int custom_colors;
unsigned int colors[4]; unsigned int colors[4];
int forced_subs_only; int forced_subs_only;
unsigned char* extradata; // extra header data passed from demuxer
int extradata_len;
#ifdef USE_ASS #ifdef USE_ASS
ass_track_t* ass_track; // for SSA/ASS streams (type == 'a') ass_track_t* ass_track; // for SSA/ASS streams (type == 'a')
#endif #endif