From 18e95314018c243dc2297a503eafa2207ebfcbfb Mon Sep 17 00:00:00 2001 From: eugeni Date: Fri, 11 Jan 2008 21:45:10 +0000 Subject: [PATCH] Add extradata to sh_sub_t. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25680 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demuxer.c | 1 + libmpdemux/stheader.h | 2 ++ 2 files changed, 3 insertions(+) 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