changeset 27045:66cda68db746

Remove pointless comments and commented-out code.
author diego
date Mon, 16 Jun 2008 08:57:47 +0000
parents b03f87f35c3c
children 21c007af99ef
files libmpdemux/demuxer.c
diffstat 1 files changed, 6 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Mon Jun 16 08:45:01 2008 +0000
+++ b/libmpdemux/demuxer.c	Mon Jun 16 08:57:47 2008 +0000
@@ -166,18 +166,18 @@
   ds->pos=0;
   ds->dpos=0;
   ds->pack_no=0;
-//---------------
+
   ds->packs=0;
   ds->bytes=0;
   ds->first=ds->last=ds->current=NULL;
   ds->id=id;
   ds->demuxer=demuxer;
-//----------------
+
   ds->asf_seq=-1;
   ds->asf_packet=NULL;
-//----------------
+
   ds->ss_mul=ds->ss_div=0;
-//----------------
+
   ds->sh=NULL;
   return ds;
 }
@@ -360,10 +360,6 @@
 
 
 void ds_add_packet(demux_stream_t *ds,demux_packet_t* dp){
-//    demux_packet_t* dp=new_demux_packet(len);
-//    stream_read(stream,dp->buffer,len);
-//    dp->pts=pts; //(float)pts/90000.0f;
-//    dp->pos=pos;
     // append packet to DS stream:
     ++ds->packs;
     ds->bytes+=dp->len;
@@ -384,7 +380,7 @@
     demux_packet_t* dp=new_demux_packet(len);
     len = stream_read(stream,dp->buffer,len);
     resize_demux_packet(dp, len);
-    dp->pts=pts; //(float)pts/90000.0f;
+    dp->pts = pts;
     dp->pos=pos;
     dp->flags=flags;
     // append packet to DS stream:
@@ -693,9 +689,6 @@
 static demuxer_t* demux_open_stream(stream_t *stream, int file_format,
                     int force, int audio_id, int video_id, int dvdsub_id,
                     char* filename) {
-
-//int file_format=(*file_format_ptr);
-
 demuxer_t *demuxer=NULL;
 
 sh_video_t *sh_video=NULL;
@@ -704,8 +697,6 @@
 int fformat = 0;
 int i;
 
-//printf("demux_open(%p,%d,%d,%d,%d)  \n",stream,file_format,audio_id,video_id,dvdsub_id);
-
 // If somebody requested a demuxer check it
 if (file_format) {
   if ((demuxer_desc = get_demuxer_desc_from_type(file_format))) {
@@ -972,15 +963,11 @@
     demux_flush(demuxer);
     // clear demux buffers:
     if(sh_audio) sh_audio->a_buffer_len=0;
-    demuxer->stream->eof=0; // clear eof flag
+    demuxer->stream->eof = 0;
     demuxer->video->eof=0;
     demuxer->audio->eof=0;
 
-#if 0
-    if(sh_audio) sh_audio->timer=sh_video->timer;
-#else
     if(sh_video) sh_video->timer=0; // !!!!!!
-#endif
 
     if(flags & SEEK_ABSOLUTE)
       pts = 0.0f;