[MPlayer-cvslog] r24515 - trunk/libmpdemux/demux_ty.c

reimar subversion at mplayerhq.hu
Sat Sep 15 12:52:36 CEST 2007


Author: reimar
Date: Sat Sep 15 12:52:36 2007
New Revision: 24515

Log:
Remove more unused code and variables


Modified:
   trunk/libmpdemux/demux_ty.c

Modified: trunk/libmpdemux/demux_ty.c
==============================================================================
--- trunk/libmpdemux/demux_ty.c	(original)
+++ trunk/libmpdemux/demux_ty.c	Sat Sep 15 12:52:36 2007
@@ -93,13 +93,9 @@ typedef struct sTivoInfo
 
    int             tivoType;           // 1 = SA, 2 = DTiVo
 
-   int64_t        firstAudioPTS;
-   int64_t        firstVideoPTS;
-
    int64_t        lastAudioPTS;
    int64_t        lastVideoPTS;
 
-   int             headerOk;
    off_t           size;
    int             readHeader;
 
@@ -347,10 +343,6 @@ static void demux_ty_CopyToDemuxPacket( 
    dp->pos = pos;
    dp->flags = 0;
    ds_add_packet( ds, dp );
-   if ( type == TY_V  && tivo->firstVideoPTS == MP_NOPTS_VALUE )
-      tivo->firstVideoPTS = pts;
-   if ( type == TY_A && tivo->firstAudioPTS == MP_NOPTS_VALUE )
-      tivo->firstAudioPTS = pts;
 }
 
 static int demux_ty_FindESHeader( uint8_t nal,
@@ -933,8 +925,6 @@ static void demux_close_ty( demuxer_t *d
 static int ty_check_file(demuxer_t* demuxer)
 {
   TiVoInfo *tivo = calloc(1, sizeof(TiVoInfo));
-  tivo->firstAudioPTS = MP_NOPTS_VALUE;
-  tivo->firstVideoPTS = MP_NOPTS_VALUE;
   demuxer->priv = tivo;
   return ds_fill_buffer(demuxer->video) ? DEMUXER_TYPE_MPEG_TY : 0;
 }



More information about the MPlayer-cvslog mailing list