mirror of https://github.com/mpv-player/mpv
Another ty simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
cd59dbdab7
commit
d967a56ee6
|
@ -401,16 +401,10 @@ static void demux_ty_CopyToDemuxPacket( int type, TiVoInfo *tivo, demux_stream_t
|
||||||
dp->flags = 0;
|
dp->flags = 0;
|
||||||
ds_add_packet( ds, dp );
|
ds_add_packet( ds, dp );
|
||||||
ds->pts = pts;
|
ds->pts = pts;
|
||||||
if ( type == TY_V )
|
if ( type == TY_V && tivo->firstVideoPTS == -1 )
|
||||||
{
|
|
||||||
if ( tivo->firstVideoPTS == -1 )
|
|
||||||
tivo->firstVideoPTS = pts;
|
tivo->firstVideoPTS = pts;
|
||||||
}
|
if ( type == TY_A && tivo->firstAudioPTS == -1 )
|
||||||
if ( type == TY_A )
|
|
||||||
{
|
|
||||||
if ( tivo->firstAudioPTS == -1 )
|
|
||||||
tivo->firstAudioPTS = pts;
|
tivo->firstAudioPTS = pts;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int demux_ty_FindESHeader( unsigned char *header, int headerSize,
|
static int demux_ty_FindESHeader( unsigned char *header, int headerSize,
|
||||||
|
|
Loading…
Reference in New Issue