summaryrefslogtreecommitdiffstats
path: root/libmpdemux
Commit message (Collapse)AuthorAgeFilesLines
* CVS --> Subversion in copyright noticesdiego2006-06-227-13/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for -alangnicodvb2006-06-211-5/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18778 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetic changes (defines will be used later in other parts of the code)ben2006-06-212-14/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18777 b3059339-0415-0410-9bf9-f77b7e298cf2
* better RTSP RFC compliance (fixes in CSeq and TEARDOWN handling)ben2006-06-213-18/+63
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18775 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for audio stream switchingnicodvb2006-06-201-1/+50
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18765 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix a buffer overflow causing a segfaultaurel2006-06-201-1/+2
| | | | | | | (original patch by Vladimir Voroshilov < voroshil _at_ univer.omsk.su >) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18764 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
* feed any audio track present in the mux; switch to any of the available ↵nicodvb2006-06-191-29/+36
| | | | | | audio tracks git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18757 b3059339-0415-0410-9bf9-f77b7e298cf2
* try to reduce the distance between consecutive frames with pts to no more ↵nicodvb2006-06-181-1/+1
| | | | | | than 0.4 seconds (required by dvds) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18754 b3059339-0415-0410-9bf9-f77b7e298cf2
* prevent buffer overflow in the STD; simplified fill_packet() (moving part of ↵nicodvb2006-06-181-87/+111
| | | | | | the code to get_packet_stats()) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18748 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix crash with all audio-only ogg files, the vorbis_info struct is notreimar2006-06-171-1/+1
| | | | | | | stored in the sh_audio context but in the demuxer priv element git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18740 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed old dvdnav codenicodvb2006-06-161-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18735 b3059339-0415-0410-9bf9-f77b7e298cf2
* 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
* 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
* restored support for dvdnav only in the stream layer; all other ↵nicodvb2006-06-143-56/+141
| | | | | | functionalities are disabled git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18715 b3059339-0415-0410-9bf9-f77b7e298cf2
* Clean up audio pts handling, make audio pts tracking in the audio-onlyuau2006-06-149-22/+4
| | | | | | | case work the same as with video. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18713 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change free_sh_audio() to take demuxer and stream id as parametersuau2006-06-145-11/+10
| | | | | | | | | | | | | | (same as new_sh_audio()) instead of sh_audio_t *, use those to remove the pointer from demuxer->a_streams[] before freeing it. Some demuxers use free_sh_audio() to undo the creation of an already-allocated audio stream in case of error. These uses were unsafe since free_sh_audio() freed the data structure but left the pointer in demuxer->a_streams[], leading to double free later in free_demuxer() (and perhaps use of the freed stream before that, I didn't check). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18711 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove extern declaration for free_sh_audio() that is both unused anduau2006-06-141-2/+0
| | | | | | | | already present from stheader.h. (Would cause a compile error after my next change.) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18710 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
* include stream_dvd's interface from libmpdemux/stream_dvd.hnicodvb2006-06-112-50/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18685 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved stream_dvd's interface to stream_dvd.hnicodvb2006-06-111-0/+48
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18684 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
* Protect SIZE_MAX usertogni2006-06-092-0/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18672 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix declaration mixed in among statements in the recent dvr-ms codepacman2006-06-091-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18671 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved store_ughvlc() before #ifdef HAVE_OGGVORBIS, so it can be used by ↵nicodvb2006-06-091-16/+16
| | | | | | other demuxers when libogg and/or libvorbis are missing git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18670 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for vorbis in mp4/movnicodvb2006-06-092-3/+61
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18668 b3059339-0415-0410-9bf9-f77b7e298cf2
* decoderConfigLen can be larger than 255 bytesnicodvb2006-06-092-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18667 b3059339-0415-0410-9bf9-f77b7e298cf2
* first vorbis packet before vorbis_synthesis_headeri() must have b_o_s==1nicodvb2006-06-071-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18638 b3059339-0415-0410-9bf9-f77b7e298cf2
* Patch from John Donaghy: "fix for audio and video in dvr-ms asf files"pacman2006-06-063-33/+198
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18610 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a few minor spelling errors in comments.corey2006-06-052-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18590 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable unsecure dumping of generic track with -v -v -vrtogni2006-06-051-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18584 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
* configurable tuning timeoutnicodvb2006-06-043-14/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18562 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix potential integer overflows in memory allocation.rtogni2006-06-0422-46/+86
| | | | | | | Patch by Rich and me git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18559 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove now obsolete .cvsignore files.diego2006-06-021-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18556 b3059339-0415-0410-9bf9-f77b7e298cf2
* metadata supportmichael2006-05-301-1/+20
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18555 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
* Fix:rathann2006-05-143-4/+4
| | | | | | | | frequencies.c:1168: warning: initialization discards qualifiers from pointer target type dvbin.c:843: warning: assignment from incompatible pointer type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18514 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix parsing of vobsub private data, patch by Evgeniy Stepanov <eugeni P ↵gpoirier2006-05-141-0/+1
| | | | | | | | | | | stepanov A gmail P com> Original thread: Date: May 14, 2006 12:28 AM Subject: [MPlayer-dev-eng] [BUG][PATCH] parsing of vobsub private data in mkv probably broken git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18508 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix some potential integer overflow in memory allocation (mot of thesertognimp2006-05-142-7/+12
| | | | | | | were probably safe or disabled anyway) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18506 b3059339-0415-0410-9bf9-f77b7e298cf2
* missing argument for mp_msg, fixes:rathann2006-05-131-1/+1
| | | | | | | demux_mov.c:1159: warning: too few arguments for format git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18492 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
* prevent memleaknicodvb2006-05-131-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18473 b3059339-0415-0410-9bf9-f77b7e298cf2
* unconditionally stop allocating memory for dvb_channel_t after 1 MB: it's ↵nicodvb2006-05-131-0/+5
| | | | | | unreasonably big git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18472 b3059339-0415-0410-9bf9-f77b7e298cf2
* accidentally committed this overflow fix with the declaration fix before.rfelker2006-05-131-1/+1
| | | | | | | | messed up indention corrected at oded's request. :) 10^100l to me too.. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18469 b3059339-0415-0410-9bf9-f77b7e298cf2
* posix compliance, dont use ancient legacy namerfelker2006-05-132-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18467 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10^100l c++ declarationsrfelker2006-05-131-2/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18466 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
* Fix potential integer overflows in memory allocation. Patch by Reimar and ↵rtognimp2006-05-112-15/+41
| | | | | | me, SIZE_MAX by Rich git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18445 b3059339-0415-0410-9bf9-f77b7e298cf2
* unbind demux_ogg from ad_libvorbis; this permits to use -ac ffvorbis without ↵nicodvb2006-05-101-6/+27
| | | | | | crashes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18431 b3059339-0415-0410-9bf9-f77b7e298cf2
* moved code to set aspect ratio for mpeg12 away from video.c and into decoder ↵nicodvb2006-05-101-1/+0
| | | | | | files; A/R changes work correctly with -vc mpeg12 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18429 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unconditionally compile the Matroska demuxer.diego2006-05-084-11/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18405 b3059339-0415-0410-9bf9-f77b7e298cf2
* COSMETICS: moved code to parse mpeg1/2 A/R to mpeg_hdr.cnicodvb2006-05-073-28/+35
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18399 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for vfps OGM filesdiego2006-05-061-1/+3
| | | | | | | patch by Elphel Inc. (blessed by Roberto) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18395 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix calculation of stream sizes when they are too big for a 32-bit variablepacman2006-05-061-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18394 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
* 100000l to the fools who don't know Crfelker2006-05-014-4/+4
| | | | | | | | | These were all found while auditing for malloc(A*B) type bugs. Removing them makes it easier to find real incorrect usage and makes the code more readable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18367 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change common pts variables from floats to doubles. Individual demuxersuau2006-04-273-9/+10
| | | | | | | should be changed later. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18310 b3059339-0415-0410-9bf9-f77b7e298cf2
* Increase HEADER_SEARCH_SIZE, fixes high-bitrate streams from demoscene.tv.diego2006-04-241-1/+1
| | | | | | | noticed by Soeren Sonnenburg, mplayer-ml -- at -- nn7 -- dot -- de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18252 b3059339-0415-0410-9bf9-f77b7e298cf2
* removed more unused stuffnicodvb2006-04-241-7/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18250 b3059339-0415-0410-9bf9-f77b7e298cf2
* when muxing mpeg audio streams analyze the first 32 KB of data to obtain the ↵nicodvb2006-04-241-3/+51
| | | | | | most likely correct layer, otherwise every misdetection during parse_audio() will lead to wrong timestamps and loss of synchrony git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18249 b3059339-0415-0410-9bf9-f77b7e298cf2
* 4 - Implement a better way to calculate current audio pts and use it forrtognimp2006-04-243-0/+24
| | | | | | | | | audio decoded with ad_libvorbis, ad_ffmpeg and ad_faad. Patch by Uoti Urpala git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18243 b3059339-0415-0410-9bf9-f77b7e298cf2
* 3 - Move a definition of MP_NOPTS_VALUE from muxer.h to demuxer.h tortognimp2006-04-242-6/+1
| | | | | | | | | make it available in more files (needed for next patch). Patch by Uoti Urpala git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18242 b3059339-0415-0410-9bf9-f77b7e298cf2
* simplified parse_audio()nicodvb2006-04-241-72/+63
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18239 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get ride of the several if(identify) messy lines and rearangment of some of ↵reynaldo2006-04-2411-115/+70
| | | | | | 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
* Do not give bogus timestamps for laced packets with no default duration. ↵mosu2006-04-241-0/+4
| | | | | | Patch by Uoti Urpala ( uoti ! urpala () pp1 ! inet ! fi ). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18237 b3059339-0415-0410-9bf9-f77b7e298cf2
* resource leak fix.gpoirier2006-04-231-0/+3
| | | | | | | | | | |