summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_ts.c
Commit message (Collapse)AuthorAgeFilesLines
* reduced standard verbosity and changed output messages to more uniform ↵nicodvb2006-06-141-13/+13
| | | | | | descriptions git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18717 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for audio stream switchingnicodvb2006-06-121-3/+98
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18691 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for dts (identified only by the PMT, not from the bitstream)nicodvb2006-06-041-1/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18566 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed wrong assignment of stream type in generic PES_PRIVATE1 streams ↵nicodvb2006-06-041-1/+1
| | | | | | (didn't respect the type qualified in the PMT) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18565 b3059339-0415-0410-9bf9-f77b7e298cf2
* one more a52 descriptor (dvb impl., untested)nicodvb2006-06-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18564 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix potential integer overflows in memory allocation.rtogni2006-06-041-7/+0
| | | | | | | Patch by Rich and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18559 b3059339-0415-0410-9bf9-f77b7e298cf2
* where necesary, replaced all realloc() with realloc_struct() to prevent int ↵nicodvb2006-05-131-4/+14
| | | | | | oveflows git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18476 b3059339-0415-0410-9bf9-f77b7e298cf2
* when searching ac3 in unqualified pes_private1 streams there's no need to ↵nicodvb2006-05-131-0/+3
| | | | | | scan > 64 KB of data: frames can't be so far apart git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18475 b3059339-0415-0410-9bf9-f77b7e298cf2
* allocate correct extradata sizenicodvb2006-05-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18465 b3059339-0415-0410-9bf9-f77b7e298cf2
* raised max extradata size and refuse to store more than the limitnicodvb2006-05-121-1/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18463 b3059339-0415-0410-9bf9-f77b7e298cf2
* don't allocate (and demux_push() immediately) demux_packet()s > ↵nicodvb2006-05-121-2/+4
| | | | | | MAX_PACK_SIZE; releasing immediately audio packets (before the pes is complete) doesn't make any sense and deteriorates interleaving git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18462 b3059339-0415-0410-9bf9-f77b7e298cf2
* search ac3 in dvd substream only if pes_aligned flag is set in the pes ↵nicodvb2006-05-121-1/+1
| | | | | | headers, otherwise false positives are likely to occur git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18461 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get ride of the several if(identify) messy lines and rearangment of some of ↵reynaldo2006-04-241-14/+7
| | | | | | the output, both patches by Kiriuja mplayer-patches AT en-directo_net, his changes are barely unrelated, nevertheless Im commiting them thogeter just for the sake of my mental healt, I had both patches already applied on my local three git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18238 b3059339-0415-0410-9bf9-f77b7e298cf2
* segfault fix: assign param->apid (that is the audio id found) when ↵nicodvb2006-04-051-0/+1
| | | | | | inexistent audio language is specified; patch by Erik Auerswald auerswal a unix-ag d uni-kl d de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18044 b3059339-0415-0410-9bf9-f77b7e298cf2
* init variable in parse_mp4_object_descriptor before using it; fixes cid 237nicodvb2006-03-111-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17817 b3059339-0415-0410-9bf9-f77b7e298cf2
* print ts_probe; 0x88 .. 0x8F in pes_private streams are not AC3 but DTS ↵nicodvb2006-03-041-2/+4
| | | | | | tracks (unsupported); save the size of the payload of the current PES packet in any case (used for ac3 detection) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17725 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
* export custom mp_a52_framesize(), needed to parse ac3 frames when liba52 is ↵nicodvb2006-01-271-3/+6
| | | | | | not present; will be moved in a more appropriate place sometimes in the future git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17493 b3059339-0415-0410-9bf9-f77b7e298cf2
* Update licensing information: The FSF changed postal address.diego2006-01-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17368 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed possible uint8 overflow; assign progid to the newly created pmtnicodvb2005-11-061-7/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16935 b3059339-0415-0410-9bf9-f77b7e298cf2
* more precise seeking based on calculated average video bitrate; works quite ↵nicodvb2005-10-311-6/+49
| | | | | | well in case of a TS with only 1 video stream git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16884 b3059339-0415-0410-9bf9-f77b7e298cf2
* move resync_audio_stream after seeking to demuxer.creimar2005-10-301-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16878 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use PRI?64 defines as format strings for 64 bit variables.reimar2005-10-131-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16751 b3059339-0415-0410-9bf9-f77b7e298cf2
* Crash fix for: "[MPlayer-users] Crash of mencoder in demux_ts.c line 2728"gpoirier2005-08-231-0/+3
| | | | | | | | | "The code which crashes looks like its trying to parse the subtitle stream, and failing, I assume because dvbsub_lang is a invalid pointer, or null." Patch by Nico Sabi git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16293 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxer modularizationrtognimp2005-08-051-7/+27
| | | | | | | Demuxer selection by name with -demuxer command (bakward compatible) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16176 b3059339-0415-0410-9bf9-f77b7e298cf2
* pass along audio extradata if presentnicodvb2005-06-061-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15670 b3059339-0415-0410-9bf9-f77b7e298cf2
* set width, height and biCompression when the video stream contains avc1; ↵nicodvb2005-04-091-13/+65
| | | | | | reuse a private member rather than a in-stack packet[204]; set pes_es->is_synced =1 when au_start=1 (SL); update PMT when setting mp4es codec (SL); fix tss->is_synced assignment (don't forget the value when it was previously set) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15076 b3059339-0415-0410-9bf9-f77b7e298cf2
* obvious gcc warning fix, approved by Nicorathann2005-04-081-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15068 b3059339-0415-0410-9bf9-f77b7e298cf2
* allocate and fill extradata field for video_avc (raw nal units, extradata ↵nicodvb2005-04-031-52/+149
| | | | | | contains sps+pps); fixed payload_size assignment for SL payloads git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15046 b3059339-0415-0410-9bf9-f77b7e298cf2
* wrong binary operatornicodvb2005-03-231-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14994 b3059339-0415-0410-9bf9-f77b7e298cf2
* consider parse random_access_point from the adaption_field to determine if ↵nicodvb2005-03-231-28/+25
| | | | | | the payload is an access point (for SL) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14993 b3059339-0415-0410-9bf9-f77b7e298cf2
* SL payloads are pushed to audio and video fifo only when they are flagged ↵nicodvb2005-03-221-7/+27
| | | | | | with random_accesspoint or access_unit_start git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14982 b3059339-0415-0410-9bf9-f77b7e298cf2
* initial support for SL packetized data, with certain limitations; partly ↵nicodvb2005-03-201-177/+829
| | | | | | reworked the tables management for a better code reuse git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14969 b3059339-0415-0410-9bf9-f77b7e298cf2
* 50000l: fixed various memleaks; CC discontibuities aren't necessarily error ↵nicodvb2005-02-251-16/+35
| | | | | | conditions git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14826 b3059339-0415-0410-9bf9-f77b7e298cf2
* replaced bzero() with memset(); stream_type 0x0f is AACnicodvb2005-01-221-13/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14572 b3059339-0415-0410-9bf9-f77b7e298cf2
* Output more information about vids, aids, sids, alangs and slangs with ↵mosu2004-11-251-0/+16
| | | | | | -identify. Patch by kiriuja <mplayer-patches@en-directo.net> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14047 b3059339-0415-0410-9bf9-f77b7e298cf2
* merged DEMUXER_TYPE_MPEG4_ES in the ordinary TS; added support for H264 in TSnicodvb2004-11-241-7/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14035 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for 192 packet size, remove junk data after 188 bytes. Patch ↵nicodvb2004-11-201-10/+28
| | | | | | by Marcus Metzler (mocm@mocm.de) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13995 b3059339-0415-0410-9bf9-f77b7e298cf2
* added language identifier (if any) to the caller during probing phasenicodvb2004-11-151-0/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13958 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed dependency on liba52nicodvb2004-10-111-7/+39
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13609 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixed a bug that makes the demuxer loop forever probing a52 audio when ↵nicodvb2004-10-071-0/+2
| | | | | | a52_syncinfo() returns 0 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13582 b3059339-0415-0410-9bf9-f77b7e298cf2
* fixing --disable for mp3lib, liba52 and libmpeg2, patch by (basic (at) ↵reimar2004-10-071-0/+4
| | | | | | mozdev (dot) org), see also bug #102 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13580 b3059339-0415-0410-9bf9-f77b7e298cf2
* small fixesrathann2004-08-281-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13188 b3059339-0415-0410-9bf9-f77b7e298cf2
* added support for ac3 in non-pes aligned private1 streams; removed useless ↵nicodvb2004-06-181-71/+131
| | | | | | and commented code git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12613 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed unused and commented code; audio is pushed synchronously (reported ↵nicodvb2004-05-311-26/+18
| | | | | | to work better); pid 16 is not default PMT (100l); trails of data are add_packet()ed git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12519 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix wrong detection of mpeg4 as mpeg2 and wrong handling of ↵nicodvb2004-03-201-21/+35
| | | | | | discontinuities/transport error bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12050 b3059339-0415-0410-9bf9-f77b7e298cf2
* Warning fixes (approved by A'rpi).rathann2003-11-081-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11413 b3059339-0415-0410-9bf9-f77b7e298cf2
* big demux_ts fix from Nico <nsabbi@libero.it>attila2003-10-201-316/+715
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11191 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a gcc 3.x crash when compiling demux_ts.c with -g -O4 (or -O3). Patch by ↵mosu2003-09-081-1/+1
| | | | | | Arpi. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10842 b3059339-0415-0410-9bf9-f77b7e298cf2
* serious bugs - 1l absinth (changed to absinth against cola inflation)alex2003-08-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10736 b3059339-0415-0410-9bf9-f77b7e298cf2
* - seek() is always synchronized to keyframes, so the decoders don'tarpi2003-08-241-160/+981
| | | | | | | | | | | | | | | | | crash anymore; successfully tested with libmpeg2 and ffmpeg12 - support for tables PAT and PMT, used the associate pids to program and to play the right streams - option -tsprog <number> to specify the chosen program (-vid and -aid still override the single stream pids) - initial support for MPEG4 in TS (M4V is working, but not AAC yet) - defragmenting mechanism (without buffering, so it has 0 added cost) to improve the playback of high bitrate movies - refers to demux_mpg_control() to get length and percentage position in the stream patch by Nico <nsabbi@libero.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10687 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix one missing #include, one missing extern and one 10l error.rathann2003-06-191-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10311 b3059339-0415-0410-9bf9-f77b7e298cf2
* - discard soon non TS files (previously it took too long, as in the casearpi2003-06-081-19/+41
| | | | | | | | | | of mpeg-ps files without a registered extension) - detect sooner audio-only files (at least 64K of the chosen audio streams without a video stream) patch by Nico <nsabbi@libero.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10260 b3059339-0415-0410-9bf9-f77b7e298cf2
* - open new_ds_[audio | video] only when the relative streams are really ↵arpi2003-06-071-598/+632
| | | | | | | | | | | | | | | | | | 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@libero.it> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10254 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes by Dominikalex2003-06-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10243 b3059339-0415-0410-9bf9-f77b7e298cf2
* fully reworked by Nico <nsabbi@libero.it>alex2003-04-281-245/+216
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10015 b3059339-0415-0410-9bf9-f77b7e298cf2
* wrong assignment of codec, patch by nsabbi@libero.italex2003-03-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9639 b3059339-0415-0410-9bf9-f77b7e298cf2
* this is a combo patch that:arpi2003-03-161-0/+903
1) adds an experimental TS demuxer to mplayer 2) adds an input (streaming) interface from DVB cards. It compiles and runs with the following versions of the drivers: dvb-kernel (HEAD) (with stock kernel 2.4.20) and 0.9.4 (with kernel 2.4.18) patch by Nico <nsabbi@libero.it> some cleanups, ts demuxer fixes by me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9611 b3059339-0415-0410-9bf9-f77b7e298cf2