# HG changeset patch # User reimar # Date 1189853556 0 # Node ID b71e50631d534e8abd53c10bb17201a85ab5dfa8 # Parent af78ee5ec7959e2285f1e74d0f2a52a89c8f25f7 Remove more unused code and variables diff -r af78ee5ec795 -r b71e50631d53 libmpdemux/demux_ty.c --- a/libmpdemux/demux_ty.c Sat Sep 15 10:07:08 2007 +0000 +++ b/libmpdemux/demux_ty.c Sat Sep 15 10:52:36 2007 +0000 @@ -93,13 +93,9 @@ 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 @@ 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 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; }