changeset 25652:6e25dda14b62

Add extradata to sh_sub_t.
author eugeni
date Fri, 11 Jan 2008 21:45:10 +0000
parents 3d5fb36693ac
children ec6e8ea85a87
files libmpdemux/demuxer.c libmpdemux/stheader.h
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Fri Jan 11 21:45:08 2008 +0000
+++ b/libmpdemux/demuxer.c	Fri Jan 11 21:45:10 2008 +0000
@@ -238,6 +238,7 @@
 
 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);
 }
 
--- a/libmpdemux/stheader.h	Fri Jan 11 21:45:08 2008 +0000
+++ b/libmpdemux/stheader.h	Fri Jan 11 21:45:10 2008 +0000
@@ -100,6 +100,8 @@
   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