[MPlayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.32,1.33

Nico Sabbi CVS syncmail at mplayerhq.hu
Mon Jun 6 22:49:58 CEST 2005


CVS change done by Nico Sabbi CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv16595

Modified Files:
	demux_ts.c 
Log Message:
pass along audio extradata if present

Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- demux_ts.c	9 Apr 2005 11:30:59 -0000	1.32
+++ demux_ts.c	6 Jun 2005 20:49:55 -0000	1.33
@@ -938,10 +938,17 @@
 
 	if(params.atype != UNKNOWN)
 	{
+		ES_stream_t *es = priv->ts.pids[params.apid];
 		sh_audio = new_sh_audio(demuxer, 0);
 		sh_audio->ds = demuxer->audio;
 		sh_audio->format = params.atype;
 		demuxer->audio->sh = sh_audio;
+		if(es->extradata && es->extradata_len)
+		{
+			sh_audio->wf = (WAVEFORMATEX *) malloc(sizeof (WAVEFORMATEX) + es->extradata_len);
+			sh_audio->wf->cbSize = es->extradata_len;
+			memcpy(sh_audio->wf + 1, es->extradata, es->extradata_len);
+                }
 	}
 
 




More information about the MPlayer-cvslog mailing list