Another ty simplification

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2007-09-14 17:08:02 +00:00
parent cd59dbdab7
commit d967a56ee6
1 changed files with 2 additions and 8 deletions

View File

@ -401,16 +401,10 @@ static void demux_ty_CopyToDemuxPacket( int type, TiVoInfo *tivo, demux_stream_t
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,