[MPlayer-cvslog] r25680 - in trunk/libmpdemux: demuxer.c stheader.h

eugeni subversion at mplayerhq.hu
Fri Jan 11 22:45:10 CET 2008


Author: eugeni
Date: Fri Jan 11 22:45:10 2008
New Revision: 25680

Log:
Add extradata to sh_sub_t.


Modified:
   trunk/libmpdemux/demuxer.c
   trunk/libmpdemux/stheader.h

Modified: trunk/libmpdemux/demuxer.c
==============================================================================
--- trunk/libmpdemux/demuxer.c	(original)
+++ trunk/libmpdemux/demuxer.c	Fri Jan 11 22:45:10 2008
@@ -238,6 +238,7 @@ sh_sub_t *new_sh_sub_sid(demuxer_t *demu
 
 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);
 }
 

Modified: trunk/libmpdemux/stheader.h
==============================================================================
--- trunk/libmpdemux/stheader.h	(original)
+++ trunk/libmpdemux/stheader.h	Fri Jan 11 22:45:10 2008
@@ -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



More information about the MPlayer-cvslog mailing list