mirror of https://github.com/mpv-player/mpv
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:
parent
4c512b27c3
commit
18e9531401
|
@ -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) {
|
||||
mp_msg(MSGT_DEMUXER, MSGL_DBG2, "DEMUXER: freeing sh_sub at %p\n", sh);
|
||||
if (sh->extradata) free(sh->extradata);
|
||||
free(sh);
|
||||
}
|
||||
|
||||
|
|
|
@ -100,6 +100,8 @@ typedef struct {
|
|||
int custom_colors;
|
||||
unsigned int colors[4];
|
||||
int forced_subs_only;
|
||||
unsigned char* extradata; // extra header data passed from demuxer
|
||||
int extradata_len;
|
||||
#ifdef USE_ASS
|
||||
ass_track_t* ass_track; // for SSA/ASS streams (type == 'a')
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue