aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux/demux_mpg.c
Commit message (Collapse)AuthorAge
* "()" to "(void)" function param list fixesGravatar uau2007-04-01
| | | | | | | patch from Stefan Huehner, stefan huehner org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22904 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add explicit location for headers from the stream/ directory.Gravatar diego2007-03-15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22623 b3059339-0415-0410-9bf9-f77b7e298cf2
* Source files should not contain non-ASCII characters.Gravatar diego2007-03-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22525 b3059339-0415-0410-9bf9-f77b7e298cf2
* test the continuity of timestamps for STREAMTYPE_VCD, too; patch by Zuxy MengGravatar nicodvb2007-02-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22381 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed duplicated code in demux_seek(); stream_seek() already aligns to ↵Gravatar nicodvb2007-02-27
| | | | | | STREAM_BUFFER_SIZE boundary git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22370 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100000l: average != semidistance, fixed seeking to the middle position; ↵Gravatar nicodvb2007-02-27
| | | | | | patch by Zuxy meng (zuxy.megn gmail com) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22369 b3059339-0415-0410-9bf9-f77b7e298cf2
* substream id 0x98..0x9f identifies dtsGravatar nicodvb2007-02-09
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22188 b3059339-0415-0410-9bf9-f77b7e298cf2
* when seeking and the codec is VC1 sync to sequence or entry point headersGravatar nicodvb2007-02-07
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22173 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux_mpg_probe() seek to the initial position before returning - patch by ↵Gravatar nicodvb2007-02-03
| | | | | | reimar git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22112 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused variablesGravatar nicodvb2007-02-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22106 b3059339-0415-0410-9bf9-f77b7e298cf2
* sanity checks during codec detection; also reset demuxer->stream->eofGravatar nicodvb2007-01-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22059 b3059339-0415-0410-9bf9-f77b7e298cf2
* added code to scan the video stream to search the actual video codec used;Gravatar nicodvb2007-01-28
| | | | | | | | | | triggered only if requested by the user with option -psprobe. Evo files require this option because H264 is stored like MPEG2 without using the PSM git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22055 b3059339-0415-0410-9bf9-f77b7e298cf2
* include math.h for fabsf()Gravatar nicodvb2007-01-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22054 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: reindentation and braces removalGravatar nicodvb2007-01-28
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22053 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved scoreboarding code to 2 separate functions (update_stats() and ↵Gravatar nicodvb2007-01-28
| | | | | | clear_stats()) to be reused next git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22052 b3059339-0415-0410-9bf9-f77b7e298cf2
* set has_valid_timestamps and corresponding first and final pts only afterGravatar nicodvb2007-01-28
| | | | | | | | | | | | | | having checked that at the beginning, at the middle and at the end of the stream timestamps don't reset and that they seem to progress (almost-) linearly; additionally probe those timestamps only when the stream type is file and it's seekable, so all other stream types (especially network ones) won't waste time trying to seek and possibly slowing down detection. Seeking is not negatively affected by these changes. Patch by Christian Aistleitner (zaek7q gmx net) reworked by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22039 b3059339-0415-0410-9bf9-f77b7e298cf2
* substream 0x75 doesn't seem to be a valid vc1 stream, after all; removedGravatar nicodvb2007-01-22
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21997 b3059339-0415-0410-9bf9-f77b7e298cf2
* set priv->last_pts to the pts read only if the pts was really read; patch by ↵Gravatar nicodvb2007-01-22
| | | | | | zaek7q gmx net (Christian Aistleitner) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21996 b3059339-0415-0410-9bf9-f77b7e298cf2
* demux vc1 (stream id 0x1Fd with 0x55 <= substream id <= 0x5F in the ↵Gravatar nicodvb2007-01-20
| | | | | | pes_extension_2 payload) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21966 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1000l; fixed wrong operator precedenceGravatar nicodvb2007-01-17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21952 b3059339-0415-0410-9bf9-f77b7e298cf2
* in evo files [e]ac3 substreams range from 0xc0 to 0xcfGravatar nicodvb2007-01-16
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21945 b3059339-0415-0410-9bf9-f77b7e298cf2
* one more #if 1 removedGravatar nicodvb2007-01-15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21937 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed useless #if1s added too long time agoGravatar nicodvb2007-01-15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21936 b3059339-0415-0410-9bf9-f77b7e298cf2
* in EVO files substreams 0xC0 of private streams 0xBD contain [e]ac3.Gravatar nicodvb2007-01-15
| | | | | | | | A more proper range will be committed when specs begin to appear; for the time being enjoy the audio stream git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21935 b3059339-0415-0410-9bf9-f77b7e298cf2
* set dp->stream_pts only when feeding the video stream to workaroundGravatar nicodvb2007-01-01
| | | | | | | | | strange interleaving patterns in some samples (that show with wild alternations of the OSD timer going back and forth) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21807 b3059339-0415-0410-9bf9-f77b7e298cf2
* replace call to ds_read_packet() with the usual ↵Gravatar nicodvb2006-12-31
| | | | | | | | | | stream_read()+ds_add_packet() sequence; fill demux_packet->stream_pts if the stream layer supports it git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21797 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of min/max macros from aviheader.h, they do not belong here.Gravatar reimar2006-12-09
| | | | | | | Replace their uses by FFMIN/FFMAX git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21547 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make subtitle stream handling more similar to audio and video streams.Gravatar reimar2006-11-13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20888 b3059339-0415-0410-9bf9-f77b7e298cf2
* consistency fix: STREAM_CTRL_GET_TIME_LENGTH and ↵Gravatar nicodvb2006-11-12
| | | | | | STREAM_CTRL_GET_CURRENT_TIME now return time in (double) seconds git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20867 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reset demuxer->sub (consistently with audio and video) after seeking and at ↵Gravatar nicodvb2006-10-01
| | | | | | | | | 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(),Gravatar nicodvb2006-09-18
| | | | | | | | 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 fileGravatar reimar2006-07-26
| | | | 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.Gravatar diego2006-07-08
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18963 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 4Gravatar reynaldo2006-07-03
| | | | 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 ↵Gravatar nicodvb2006-06-19
| | | | | | 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; ↵Gravatar nicodvb2006-06-14
| | | | | | 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, ↵Gravatar nicodvb2006-06-11
| | | | | | 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 invalidGravatar nicodvb2006-05-18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18550 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed %d->PRIu64 in read_mpeg_timestamp()Gravatar nicodvb2006-05-03
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18383 b3059339-0415-0410-9bf9-f77b7e298cf2
* stream_read_word() returns _unsigned_ intGravatar nicodvb2006-05-03
| | | | 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 ↵Gravatar nicodvb2006-05-03
| | | | | | 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; 10lGravatar nicodvb2006-04-11
| | | | 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 throughGravatar reimar2006-04-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 ↵Gravatar nicodvb2006-03-12
| | | | | | 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 56Gravatar nicodvb2006-03-12
| | | | 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 241Gravatar nicodvb2006-03-12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17820 b3059339-0415-0410-9bf9-f77b7e298cf2
* Missing free_demux_packet after read errorGravatar reimar2006-03-08
| | | | 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 ↵Gravatar nicodvb2006-02-27
| | | | | | 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.Gravatar corey2006-02-17
| | | | | | | | | | | | 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.Gravatar corey2006-02-09
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17570 b3059339-0415-0410-9bf9-f77b7e298cf2