summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_mpg.c
Commit message (Collapse)AuthorAgeFilesLines
* Reset demuxer->sub (consistently with audio and video) after seeking and at ↵nicodvb2006-10-011-0/+2
| | | | | | | | | the end of demux_mpg_open() to prevent ghost packets. Patch by Olaf Mandel - olaf mandel name. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20011 b3059339-0415-0410-9bf9-f77b7e298cf2
* demuxer->movi_end is updated after ds_fill_buffer(),nicodvb2006-09-181-1/+2
| | | | | | | | this in demux_mpg_probe() end_seq_start must be assigned after ds_fill_buffer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19902 b3059339-0415-0410-9bf9-f77b7e298cf2
* Incorrect check in gxf demuxer leading to crash with textKO.gxf sample filereimar2006-07-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19187 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables, patch by Stefan Huehner stefan at huehner org.diego2006-07-081-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18963 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 4reynaldo2006-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18890 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove misleading Encrypted VOB message; patch by Ismail Donmez (ismail ab ↵nicodvb2006-06-191-3/+0
| | | | | | pardus punctum org puntum tr) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18761 b3059339-0415-0410-9bf9-f77b7e298cf2
* workaround: at every read update demux->movi_end with stream->end_pos; ↵nicodvb2006-06-141-0/+5
| | | | | | needed to show the progress bar when playing dvdnav streams git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18716 b3059339-0415-0410-9bf9-f77b7e298cf2
* now any audio stream can be chosen during DEMUXER_CTRL_SWITCH_AUDIO, ↵nicodvb2006-06-111-4/+0
| | | | | | irrispective of the codec used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18683 b3059339-0415-0410-9bf9-f77b7e298cf2
* psm longer than 1018 bytes is not allowed, thus invalidnicodvb2006-05-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18550 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed %d->PRIu64 in read_mpeg_timestamp()nicodvb2006-05-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18383 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream_read_word() returns _unsigned_ intnicodvb2006-05-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18382 b3059339-0415-0410-9bf9-f77b7e298cf2
* in read_mpeg_timestamp() cast int expression to uint64_t before shifting to ↵nicodvb2006-05-031-1/+1
| | | | | | avoid truncation of bits and to prevent propagation of bit 1 as sign bit in pts git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18381 b3059339-0415-0410-9bf9-f77b7e298cf2
* timestamps are 33 bits long, so they don't fit in an unsigned int; 10lnicodvb2006-04-111-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18078 b3059339-0415-0410-9bf9-f77b7e298cf2
* make sure the check for valid timestamps does not accidentially search throughreimar2006-04-101-2/+10
| | | | | | | | several hundered MB (e.g. happens under MinGW with certain DVDs due to movi_end overflowing). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18073 b3059339-0415-0410-9bf9-f77b7e298cf2
* fail immediately if any of the parameters necessary to switch audio stream ↵nicodvb2006-03-121-1/+5
| | | | | | isn't set/correct; closes cid 55 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17823 b3059339-0415-0410-9bf9-f77b7e298cf2
* check sh_video before seeking; closes cid 56nicodvb2006-03-121-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17822 b3059339-0415-0410-9bf9-f77b7e298cf2
* init sh_a (new audio stream) to sh_audio (current audio stream); closes cid 241nicodvb2006-03-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17820 b3059339-0415-0410-9bf9-f77b7e298cf2
* Missing free_demux_packet after read errorreimar2006-03-081-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17780 b3059339-0415-0410-9bf9-f77b7e298cf2
* try to get duration from the stream layer, if an implementation of ↵nicodvb2006-02-271-0/+8
| | | | | | STREAM_CTRL_GET_TIME_LENGTH is available git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17700 b3059339-0415-0410-9bf9-f77b7e298cf2
* Second-try commit of this patch.corey2006-02-171-1/+1
| | | | | | | | | | | | 1. Include audio_delay as an argument to demux_seek. 2. Modify demux_seek_avi to adjust the audio/video stream positions so that mplayer/mencoder will instantly be in sync even when -delay is specified. I've quadruple checked this time; hopefully I haven't missed anything. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17637 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reverse commit of unfinished patch for passing audio_delay to the demuxers.corey2006-02-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17570 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1. Include audio_delay as an argument to demux_seek.corey2006-02-071-1/+1
| | | | | | | | | | | 2. Modify demux_seek_avi to adjust the audio/video stream positions so that mplayer/mencoder will instantly be in sync even when -delay is specified. Other demuxers could be modified similarly in the future. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17554 b3059339-0415-0410-9bf9-f77b7e298cf2
* massive attack: mp_msg printf format fixesrathann2006-01-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17367 b3059339-0415-0410-9bf9-f77b7e298cf2
* h264es: don't seek to non-keyframeslorenm2006-01-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17290 b3059339-0415-0410-9bf9-f77b7e298cf2
* don't reset dvdsub->id unless -slang is specified; assign default sub stream ↵nicodvb2006-01-021-0/+5
| | | | | | id when demux->sub->id is -1 (autodetect) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17287 b3059339-0415-0410-9bf9-f77b7e298cf2
* move resync_audio_stream after seeking to demuxer.creimar2005-10-301-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16878 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, demux_mpg_control was missing from demuxer info struct, causing audioreimar2005-10-151-5/+5
| | | | | | | switching not to work git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16772 b3059339-0415-0410-9bf9-f77b7e298cf2
* faster mpg and much faster gxf demuxingreimar2005-09-031-21/+58
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16370 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make -identify's 'ID_LENGTH=' print a float and not an integer.. Theods152005-09-021-1/+1
| | | | | | | | accuracey may be totally fake for some demuxers (mpg), but accurate for others.. (avi) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16347 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix mpeg-pes playbackrtognimp2005-08-261-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16315 b3059339-0415-0410-9bf9-f77b7e298cf2
* support MPEG in GXF container with extension-based detection.reimar2005-08-261-0/+53
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16311 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxer modularizationrtognimp2005-08-051-6/+129
| | | | | | | Demuxer selection by name with -demuxer command (bakward compatible) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
* support raw ac3 (in private pes packets without the usual dvd 4 bytes ↵nicodvb2005-06-251-2/+18
| | | | | | substream header). Patch by Matthias Scharzott git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15816 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved mpeg-ps/es probing code to demux_mpg.cnicodvb2005-06-061-14/+94
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15671 b3059339-0415-0410-9bf9-f77b7e298cf2
* adds a parameter to the switch_audio command to directly select a track.reimar2005-04-281-2/+13
| | | | | | | Patch by kiriuja mplayer-patches at en-directo net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15286 b3059339-0415-0410-9bf9-f77b7e298cf2
* Added support of audio stream switching in the MPEG demuxer using the #-keygpoirier2005-04-031-8/+44
| | | | | | | | Patch by Michael Behrisch < behrisch $ informatik * hu-berlin * de > commited with the kind blessing of D. Richard Felker III git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15047 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for other codecs (mpeg4/h264/aac) in mpeg-ps parsing the PSMnicodvb2005-03-061-1/+95
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14924 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move generic length and percent pos calculation to demuxer.creimar2005-01-151-7/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14503 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed broken seeking in mpeg-es files; syncword seeking for all 3 video codecsnicodvb2005-01-081-4/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14427 b3059339-0415-0410-9bf9-f77b7e298cf2
* seeking based on the largest timestamp in an mpeg streamaurel2004-10-231-2/+96
| | | | | | | | | It is often more accurate than the current seeking and it has the additional benefit of giving the (almost) precise total time of the movie. patch by Michael Behrisch < behrisch at informatik.hu-berlin.de > git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13739 b3059339-0415-0410-9bf9-f77b7e298cf2
* avoid segfault with -vc dummyreimar2004-10-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13650 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix for crash when seeking with -novideo optionreimar2004-08-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12968 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed the historic libcss supportalex2003-12-081-15/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11593 b3059339-0415-0410-9bf9-f77b7e298cf2
* H264-ES demuxermichael2003-04-041-0/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9825 b3059339-0415-0410-9bf9-f77b7e298cf2
* raw mpeg4-es support (you need to set -fps manually!)arpi2003-01-231-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9070 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)michael2002-11-231-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8255 b3059339-0415-0410-9bf9-f77b7e298cf2
* demuxer_control(), percent position and time length query implemented inarpi2002-11-161-1/+22
| | | | | | | | asf, avi, mpeg demuxers. patch by Balatoni Denes <pnis@coder.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8209 b3059339-0415-0410-9bf9-f77b7e298cf2
* *HUGE* set of compiler warning fixes, unused variables removalarpi2002-11-061-0/+3
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed LPCM parsingarpi2002-10-081-18/+28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7672 b3059339-0415-0410-9bf9-f77b7e298cf2
* some cleanup - made private vars/funcs static, removed obsolete externsarpi2002-09-291-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7560 b3059339-0415-0410-9bf9-f77b7e298cf2
* max_packs increased for some dvd with too many audio/subarpi2002-04-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5571 b3059339-0415-0410-9bf9-f77b7e298cf2
* added mp3 detectionarpi2002-02-141-1/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4712 b3059339-0415-0410-9bf9-f77b7e298cf2
* DVD start position handling changed (progbar/eta fix)arpi2002-01-271-1/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4392 b3059339-0415-0410-9bf9-f77b7e298cf2
* Return of the 'Old-style-DVD-support', with dynamic loading (using libdl) solgb2002-01-041-1/+1
| | | | | | | | | | | | no more conflict with libdvdread: you can compile in both of libdvdread and libcss support! You can even select libcss.so to load from command line or configuration file, with '-csslib /usr/local/lib/libcss.so' or something similar. Default for this option is /usr/local/lib/libcss.so. Note: libcss version (ver>0.1) with newer API is not supported in this version! This is the first version so stay tuned :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3976 b3059339-0415-0410-9bf9-f77b7e298cf2
* hotfix for ac3 aid<0x20 (VDR)arpi2002-01-021-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3956 b3059339-0415-0410-9bf9-f77b7e298cf2
* mpeg VDR vs. BIN fixed?arpi2001-12-261-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3771 b3059339-0415-0410-9bf9-f77b7e298cf2
* combined PS/PES sync to allow .VDR playback from stdinarpi2001-12-011-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3256 b3059339-0415-0410-9bf9-f77b7e298cf2
* config.h cleanup, few things added to steram/demuxer headersarpi2001-10-301-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2556 b3059339-0415-0410-9bf9-f77b7e298cf2
* includes cleanuparpi2001-10-211-11/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2339 b3059339-0415-0410-9bf9-f77b7e298cf2
* libdemuxer...arpi2001-10-201-0/+403
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2311 b3059339-0415-0410-9bf9-f77b7e298cf2