[MPlayer-cvslog] r24480 - trunk/libmpdemux/demux_ty.c
reimar
subversion at mplayerhq.hu
Fri Sep 14 19:08:02 CEST 2007
Author: reimar
Date: Fri Sep 14 19:08:02 2007
New Revision: 24480
Log:
Another ty simplification
Modified:
trunk/libmpdemux/demux_ty.c
Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c (original)
+++ trunk/libmpdemux/demux_ty.c Fri Sep 14 19:08:02 2007
@@ -401,16 +401,10 @@ static void demux_ty_CopyToDemuxPacket(
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,
More information about the MPlayer-cvslog
mailing list