[Mplayer-cvslog] CVS: main/libmpdemux demux_ts.c,1.4,1.5
Arpi of Ize
arpi at mplayerhq.hu
Sat Jun 7 13:30:46 CEST 2003
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv19480
Modified Files:
demux_ts.c
Log Message:
- open new_ds_[audio | video] only when the relative streams are really available
- consequently, -nosound now works
- simplified the feeding (to ds_) function
- eliminated the previous buffering of ES data (so it should be a little faster)
- discard junk ES data after payload_size for the current pes packet is 0
- reduced the probe buffer
- better support for audio only TS (DAB seems to have many fans)
- fixes the wrong spacing (now fixed at 8 chars)
- makes static all the functions that are not exported
- comments the unused code that I could need in the future
patch by Nico <nsabbi at libero.it>
Index: demux_ts.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ts.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- demux_ts.c 3 Jun 2003 17:43:49 -0000 1.4
+++ demux_ts.c 7 Jun 2003 11:30:19 -0000 1.5
@@ -1,23 +1,12 @@
/*
* Demultiplexer for MPEG2 Transport Streams.
*
- * For the purposes of playing video, we make some assumptions about the
- * kinds of TS we have to process. The most important simplification is to
- * assume that the TS contains a single program (SPTS) because this then
- * allows significant simplifications to be made in processing PATs.
- *
- * WARNING: Quite a hack was required in order to get files by MultiDec played back correctly.
- * If it breaks anything else, just comment out the "#define DEMUX_PVA_MULTIDEC_HACK" below
- * and it will not be compiled in.
[...1437 lines suppressed...]
+ resync_audio_stream(sh_audio);
}
return 1;
}
-
-
-
-
-
-static int mpegts_read_close(MpegTSContext *ts)
-{
- int i;
- for(i=0;i<NB_PID_MAX;i++)
- free(ts->pids[i]);
- return 0;
-}
-
More information about the MPlayer-cvslog
mailing list