[MPlayer-cvslog] r22066 - trunk/libmpdemux/demux_ts.c

nicodvb subversion at mplayerhq.hu
Mon Jan 29 23:49:14 CET 2007


Author: nicodvb
Date: Mon Jan 29 23:49:14 2007
New Revision: 22066

Modified:
   trunk/libmpdemux/demux_ts.c

Log:
fix audio type when ts_detect_streams detects that a private1 stream is actually ac3

Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	(original)
+++ trunk/libmpdemux/demux_ts.c	Mon Jan 29 23:49:14 2007
@@ -1008,6 +1008,9 @@
 
 	if(params.atype != UNKNOWN)
 	{
+		ES_stream_t *es = priv->ts.pids[params.apid]; 
+		
+		if(!IS_AUDIO(es->type) && !IS_AUDIO(es->subtype)) es->subtype = params.atype;
 		ts_add_stream(demuxer, priv->ts.pids[params.apid]);
 		sh_audio = priv->ts.streams[params.apid].sh;
 		demuxer->audio->id = priv->ts.streams[params.apid].id;



More information about the MPlayer-cvslog mailing list