# HG changeset patch # User reimar # Date 1189789682 0 # Node ID 376b4674f2d0ba642397cbddd42369fc4d3a6e7b # Parent d3232370513bf6e1efee44d94b3726fbb68483a8 Another ty simplification diff -r d3232370513b -r 376b4674f2d0 libmpdemux/demux_ty.c --- 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,