diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-11 21:45:10 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-01-11 21:45:10 +0000 |
commit | 18e95314018c243dc2297a503eafa2207ebfcbfb (patch) | |
tree | 9b63b6c739f69915b2bc77e463e9f3650d91160f | |
parent | 4c512b27c3fafd151ad760204c1d158db5ed22bf (diff) |
Add extradata to sh_sub_t.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25680 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpdemux/demuxer.c | 1 | ||||
-rw-r--r-- | libmpdemux/stheader.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libmpdemux/demuxer.c b/libmpdemux/demuxer.c index 19522a8329..2482ad26be 100644 --- a/libmpdemux/demuxer.c +++ b/libmpdemux/demuxer.c @@ -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); } diff --git a/libmpdemux/stheader.h b/libmpdemux/stheader.h index d560322e04..7fb897cdd7 100644 --- a/libmpdemux/stheader.h +++ b/libmpdemux/stheader.h @@ -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 |