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

nicodvb subversion at mplayerhq.hu
Tue Oct 17 23:26:30 CEST 2006


Author: nicodvb
Date: Tue Oct 17 23:26:30 2006
New Revision: 20289

Modified:
   trunk/libmpdemux/demux_ts.c

Log:
fixed corner case previously mishandled: don't play an audio only stream when
-nosound is specified 


Modified: trunk/libmpdemux/demux_ts.c
==============================================================================
--- trunk/libmpdemux/demux_ts.c	(original)
+++ trunk/libmpdemux/demux_ts.c	Tue Oct 17 23:26:30 2006
@@ -580,7 +580,7 @@
 		{
 			//Non PES-aligned A52 audio may escape detection if PMT is not present;
 			//in this case we try to find at least 3 A52 syncwords
-			if((es.type == PES_PRIVATE1) && (! audio_found))
+			if((es.type == PES_PRIVATE1) && (! audio_found) && req_apid > -2)
 			{
 				pptr = &pes_priv1[es.pid];
 				if(pptr->pos < 64*1024)
@@ -608,6 +608,8 @@
 
 			if((! is_audio) && (! is_video) && (! is_sub))
 				continue;
+			if(is_audio && req_apid==-2)
+				continue;
 
 			if(is_video)
 			{



More information about the MPlayer-cvslog mailing list