changeset 3516:1e93578232d6 libavformat

Another variable that did nothing at all
author michael
date Thu, 26 Jun 2008 22:43:18 +0000
parents 4f78b4688afc
children 001175066382
files psxstr.c
diffstat 1 files changed, 0 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/psxstr.c	Thu Jun 26 22:42:13 2008 +0000
+++ b/psxstr.c	Thu Jun 26 22:43:18 2008 +0000
@@ -62,8 +62,6 @@
 
     /* a STR file can contain up to 32 channels of data */
     StrChannel channels[32];
-
-    int64_t pts;
 } StrDemuxContext;
 
 static const char sync_header[12] = {0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x00};
@@ -117,9 +115,6 @@
     int i;
     int channel;
 
-    /* initialize context members */
-    str->pts = 0;
-
     /* skip over any RIFF header */
     if (get_buffer(pb, sector, RIFF_HEADER_SIZE) != RIFF_HEADER_SIZE)
         return AVERROR(EIO);
@@ -259,12 +254,6 @@
                     pkt->pos= url_ftell(pb) - RAW_CD_SECTOR_SIZE;
                     pkt->stream_index =
                         str->channels[channel].video_stream_index;
-               //     pkt->pts = str->pts;
-
-                    /* if there is no audio, adjust the pts after every video
-                     * frame; assume 15 fps */
-                   if (0)
-                       str->pts += (90000 / 15);
                 }
 
                 memcpy(pkt->data + current_sector*VIDEO_DATA_CHUNK_SIZE,
@@ -294,7 +283,6 @@
 
                 pkt->stream_index =
                     str->channels[channel].audio_stream_index;
-                //pkt->pts = str->pts;
                 return 0;
 #endif
             break;