[MPlayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.53,1.54

Nico Sabbi CVS syncmail at mplayerhq.hu
Sat May 13 12:09:35 CEST 2006


CVS change done by Nico Sabbi CVS

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

Modified Files:
	demux_ts.c 
Log Message:
when searching ac3 in unqualified pes_private1 streams there's no need to scan > 64 KB of data: frames can't be so far apart

Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- demux_ts.c	12 May 2006 22:33:42 -0000	1.53
+++ demux_ts.c	13 May 2006 10:09:33 -0000	1.54
@@ -570,6 +570,8 @@
 			if((es.type == PES_PRIVATE1) && (! audio_found))
 			{
 				pptr = &pes_priv1[es.pid];
+				if(pptr->pos < 64*1024)
+				{
 				tmpbuf = (char*) realloc(pptr->buf, pptr->pos + es.size);
 				if(tmpbuf != NULL)
 				{
@@ -583,6 +585,7 @@
 						es.type = AUDIO_A52;
 					}
 				}
+				}
 			}
 			
 			is_audio = IS_AUDIO(es.type) || ((es.type==SL_PES_STREAM) && IS_AUDIO(es.subtype));




More information about the MPlayer-cvslog mailing list