changeset 24460:376b4674f2d0

Another ty simplification
author reimar
date Fri, 14 Sep 2007 17:08:02 +0000
parents d3232370513b
children 921de822048c
files libmpdemux/demux_ty.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ty.c	Fri Sep 14 17:06:04 2007 +0000
+++ b/libmpdemux/demux_ty.c	Fri Sep 14 17:08:02 2007 +0000
@@ -401,16 +401,10 @@
    dp->flags = 0;
    ds_add_packet( ds, dp );
 	ds->pts = pts;
-	if ( type == TY_V )
-	{
-		if ( tivo->firstVideoPTS == -1 )
+	if ( type == TY_V  && tivo->firstVideoPTS == -1 )
 			tivo->firstVideoPTS = pts;
-	}
-	if ( type == TY_A )
-	{
-		if ( tivo->firstAudioPTS == -1 )
+	if ( type == TY_A && tivo->firstAudioPTS == -1 )
 			tivo->firstAudioPTS = pts;
-	}
 }
 
 static int demux_ty_FindESHeader( unsigned char *header, int headerSize,