summaryrefslogtreecommitdiffstats
path: root/libmpdemux
Commit message (Collapse)AuthorAgeFilesLines
* Revert r24446 since it breaks mingw32 build: _WINGDI_H is defined in wingdi.hzuxy2007-09-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24510 b3059339-0415-0410-9bf9-f77b7e298cf2
* live recordings can contain 0-size type 0 chunks, ignore them insteadreimar2007-09-141-1/+1
| | | | | | | of erroring out. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24509 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move some more variable declarationsreimar2007-09-141-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24508 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove tabs and trailing whitespacereimar2007-09-141-124/+124
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24507 b3059339-0415-0410-9bf9-f77b7e298cf2
* A few more useless ()reimar2007-09-141-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24506 b3059339-0415-0410-9bf9-f77b7e298cf2
* Minor simplificationsreimar2007-09-141-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24505 b3059339-0415-0410-9bf9-f77b7e298cf2
* Further simplify demux_ty_FindESHeaderreimar2007-09-141-11/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24504 b3059339-0415-0410-9bf9-f77b7e298cf2
* Optimize demux_ty_FindESHeaderreimar2007-09-141-8/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24503 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some commented-out debugging codereimar2007-09-141-29/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24502 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix demux_ty_FindESHeader so it won't overreadreimar2007-09-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24501 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify demux_ty_FindESPacket by reusing demux_ty_FindESHeaderreimar2007-09-141-32/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24500 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused demux_ty_FindESPacket parameterreimar2007-09-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24499 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify demux_ty_FindESHeaderreimar2007-09-141-12/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24498 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move variable declarations into the block where they are usedreimar2007-09-141-19/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24497 b3059339-0415-0410-9bf9-f77b7e298cf2
* Another piece of duplicate codereimar2007-09-141-13/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24496 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid a big piece of duplicated codereimar2007-09-141-52/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24495 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of more code duplicationreimar2007-09-141-35/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24494 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify XDS handlingreimar2007-09-141-12/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24493 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce code duplicationreimar2007-09-141-21/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24492 b3059339-0415-0410-9bf9-f77b7e298cf2
* Greatly simplify IsValidAudioPacket, though this might break somethingreimar2007-09-141-30/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24491 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify IsValidAudioPacketreimar2007-09-141-9/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24490 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not misuse a_streams for private info, demuxer->priv is for that!reimar2007-09-141-22/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24489 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use AV_RB24reimar2007-09-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24488 b3059339-0415-0410-9bf9-f77b7e298cf2
* get rid of pointless pesFileId variablesreimar2007-09-141-19/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24487 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify AV_RB32 / 256 -> AV_RB24reimar2007-09-141-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24486 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use AV_RB32 instead of tivobuffer2hostlongreimar2007-09-141-12/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24485 b3059339-0415-0410-9bf9-f77b7e298cf2
* Yet more cosmeticsreimar2007-09-141-23/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24484 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move timestamps to int64_t and use MP_NOPTS_VALUEreimar2007-09-141-29/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24483 b3059339-0415-0410-9bf9-f77b7e298cf2
* Demuxers are _not_ supposed to set ds->pts!reimar2007-09-141-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24482 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix completely broken get_ty_pts (it's an ordinary MPEG timestamp)reimar2007-09-141-15/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24481 b3059339-0415-0410-9bf9-f77b7e298cf2
* Another ty simplificationreimar2007-09-141-8/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24480 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variablereimar2007-09-141-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24479 b3059339-0415-0410-9bf9-f77b7e298cf2
* tmf_totalsize is not used either, remove itreimar2007-09-141-7/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24478 b3059339-0415-0410-9bf9-f77b7e298cf2
* More simplificationsreimar2007-09-141-13/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24477 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of some quite pointless variablesreimar2007-09-141-18/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24476 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move boundary check before use!reimar2007-09-141-2/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24475 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused tmf_totalchunksreimar2007-09-141-8/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24473 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify EOF handlingreimar2007-09-141-10/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24472 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify tmf_filetooffsetreimar2007-09-141-21/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24471 b3059339-0415-0410-9bf9-f77b7e298cf2
* Small simplificationsreimar2007-09-141-7/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24470 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10l, placed terminating 0 at the wrong place.reimar2007-09-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24469 b3059339-0415-0410-9bf9-f77b7e298cf2
* Avoid strlcpy, tar headers already have space to ensure 0-terminationreimar2007-09-141-4/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24468 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not ignore last chunk in .tmf files, it will cause part of the file to bereimar2007-09-141-3/+1
| | | | | | | missing during playback. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24467 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove lots of useless () and {}.reimar2007-09-141-151/+85
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24466 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use CHUNKSIZE define in a few more placesreimar2007-09-141-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24465 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify ty_extensionisreimar2007-09-141-8/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24464 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make demux_ty internal functions staticreimar2007-09-141-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24463 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use strtol instead of horribly suboptimal ty_octaltodecimalreimar2007-09-141-21/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24462 b3059339-0415-0410-9bf9-f77b7e298cf2
* added monkey audio file extensions to extension tableben2007-09-131-0/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24449 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check wLongsPerEntry before using it.reimar2007-09-131-5/+5
| | | | | | | | | | This fixes a potential crash for some values of it. As a side effect it works around broken callocs with an integer overflow vulnerability, but using MPlayer on such systems should never be assumed to be safe! git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24447 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless preprocessor check, _WINGDI_H is never defined.diego2007-09-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24446 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes:diego2007-09-131-1/+1
| | | | | | | | | | | | | | | | | input.c: In function 'mp_input_set_section': input.c:1640: warning: suggest parentheses around assignment used as truth value input.c:1643: warning: suggest parentheses around assignment used as truth value mga_common.c: In function 'mga_init': mga_common.c:394: warning: suggest parentheses around assignment used as truth value playtreeparser.c: In function 'parse_smil': playtreeparser.c:523: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'ts_parse': libmpdemux/demux_ts.c:2795: warning: suggest parentheses around assignment used as truth value libmpdemux/demux_ts.c: In function 'demux_open_ts': libmpdemux/demux_ts.c:591: warning: 'frame_length' may be used uninitialized in this function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace constant by appropriate definereimar2007-09-131-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24443 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-091-1/+1
| | | | | | | | demux_mov.c: In function 'mov_check_file': demux_mov.c:504: warning: label 'skip_chunk' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24378 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-091-1/+1
| | | | | | | | demux_lmlm4.c: In function 'demux_lmlm4_fill_buffer': demux_lmlm4.c:215: warning: label 'hdr' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24377 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add nuv codec tag mappingreimar2007-09-091-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark lavfpref demuxer as safe, so it that it is actually used for e.g.reimar2007-09-091-1/+1
| | | | | | | nuv as it was planned. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24374 b3059339-0415-0410-9bf9-f77b7e298cf2
* added .stream_aspect to st_video_t: if non-zero and if not specified otherwisenicodvb2007-09-011-0/+1
| | | | | | | by the user the video pipeline will use it as current aspect ratio git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24319 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: typo fix UNSUPORTED --> UNSUPPORTEDdiego2007-08-283-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24277 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix warnings:diego2007-08-261-2/+0
| | | | | | | | | | demux_mkv.c: In function 'demux_mkv_read_chapters': demux_mkv.c:1299: warning: unused variable 'mkv_d' demux_mkv.c: In function 'handle_subtitles': demux_mkv.c:2740: warning: unused variable 'mkv_d' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24219 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split lschunks function further, it is simply too huge to do any useful ↵reimar2007-08-251-62/+72
| | | | | | | | | changes (e.g. for more proper support for multi-codec tracks). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24202 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-08-251-1/+0
| | | | | | | | demux_mov.c:44: warning: redundant redeclaration of 'vo_sub' ../libvo/sub.h:64: warning: previous declaration of 'vo_sub' was here git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24192 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declarations.diego2007-08-251-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24167 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove redundant variable declaration.diego2007-08-251-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24164 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing pixelformat conversion function prototypereimar2007-08-241-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24144 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove silly #ifdef around the complete file.diego2007-08-241-6/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24138 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation of live555 support after FFmpegs r10173.cehoyos2007-08-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24123 b3059339-0415-0410-9bf9-f77b7e298cf2
* We can support SEEK_END seeks only when stream->end_pos is knownreimar2007-08-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24105 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for AVSEEK_SIZE in demux_lavfreimar2007-08-201-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24104 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not seek to an invalid position.reimar2007-08-191-0/+2
| | | | | | | Patch by {emild [at] cs technion ac il} git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24102 b3059339-0415-0410-9bf9-f77b7e298cf2
* When a new subtitle stream becomes available check if it is the one thatreimar2007-08-091-0/+6
| | | | | | | | | was requested by the user and set up sub->id and sub->sh accordingly. Fixes -slang and -sid with DVD subtitles (basically only 'j' during playback could make them show). This was broken by r23786. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24042 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix detection of xan audio. -noidx or -forceidx still is necessaryreimar2007-08-011-0/+5
| | | | | | | to detect audio at all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23985 b3059339-0415-0410-9bf9-f77b7e298cf2
* get rid of this idiotic i_certify_that_my_video_stream_does_not_use_b_framesmichael2007-07-311-14/+1
| | | | | | | | | muxer_lavf can now generate correct files with b frames as long as the timestamps provided to it are correct (they should be with lavc encoding, expect trouble with stream copy though) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23976 b3059339-0415-0410-9bf9-f77b7e298cf2
* make muxer store the provided timestampsmichael2007-07-311-4/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23975 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the standard inline instead of __inlinereimar2007-07-301-15/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23935 b3059339-0415-0410-9bf9-f77b7e298cf2
* Another missed case-rangereimar2007-07-301-1/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23934 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not use gnu case-range extension if it's easy to avoidreimar2007-07-301-1/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23933 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: misc typo fixesdiego2007-07-281-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23893 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove extern index_mode, it is already in demuxer.hreimar2007-07-271-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23886 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure fformat is set before usereimar2007-07-271-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trun