Commit Graph

24474 Commits

Author SHA1 Message Date
reimar 5072dde419 Simplify XDS handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24493 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:07:50 +00:00
reimar 6b7b78b9a8 Reduce code duplication
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24492 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:58:32 +00:00
reimar c30f384128 Greatly simplify IsValidAudioPacket, though this might break something
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24491 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:54:14 +00:00
reimar 8f09299308 Simplify IsValidAudioPacket
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24490 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:50:25 +00:00
reimar 26369de7a9 Do not misuse a_streams for private info, demuxer->priv is for that!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24489 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:40:57 +00:00
reimar 512a3a03be Use AV_RB24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24488 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:32:34 +00:00
reimar 54562a6084 get rid of pointless pesFileId variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24487 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:31:14 +00:00
reimar b65c7919ca Simplify AV_RB32 / 256 -> AV_RB24
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24486 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:26:55 +00:00
reimar 394304bd5a Use AV_RB32 instead of tivobuffer2hostlong
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24485 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:23:13 +00:00
reimar c09ba25466 Yet more cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24484 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:19:10 +00:00
reimar a6a96ab944 Move timestamps to int64_t and use MP_NOPTS_VALUE
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24483 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 18:03:36 +00:00
reimar 0c71c038df Demuxers are _not_ supposed to set ds->pts!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24482 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:56:22 +00:00
reimar 29e529c873 Fix completely broken get_ty_pts (it's an ordinary MPEG timestamp)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24481 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:39:48 +00:00
reimar d967a56ee6 Another ty simplification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24480 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:08:02 +00:00
reimar cd59dbdab7 Remove unused variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24479 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:06:04 +00:00
reimar b49196162c tmf_totalsize is not used either, remove it
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24478 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:04:36 +00:00
reimar 5789ab4ab7 More simplifications
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24477 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:03:26 +00:00
reimar 56f5ab430f Get rid of some quite pointless variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24476 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 17:00:09 +00:00
reimar 4e9311b1de Move boundary check before use!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24475 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:58:31 +00:00
voroshil b7f2c746cc pthreads support is required for teletext
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24474 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:50:42 +00:00
reimar 37fbb9e2b0 Remove unused tmf_totalchunks
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24473 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:45:52 +00:00
reimar bd5e05cde4 Simplify EOF handling
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24472 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:44:52 +00:00
reimar 9ec6875d20 Simplify tmf_filetooffset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24471 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:42:46 +00:00
reimar 1498c9b7d0 Small simplifications
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24470 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:21:12 +00:00
reimar 55dac8bb6f 10l, placed terminating 0 at the wrong place.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24469 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:12:33 +00:00
reimar d85a609547 Avoid strlcpy, tar headers already have space to ensure 0-termination
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24468 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:12:02 +00:00
reimar 97f633a083 Do not ignore last chunk in .tmf files, it will cause part of the file to be
missing during playback.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24467 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 16:04:12 +00:00
reimar 4fb393a73b Cosmetics: remove lots of useless () and {}.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24466 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 15:52:46 +00:00
reimar 2334d91da4 Use CHUNKSIZE define in a few more places
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24465 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 15:33:21 +00:00
reimar 5ebf63afcd Simplify ty_extensionis
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24464 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 15:28:47 +00:00
reimar 89c39c06d0 Make demux_ty internal functions static
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24463 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 15:19:45 +00:00
reimar 5ab9dde9d7 Use strtol instead of horribly suboptimal ty_octaltodecimal
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24462 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 15:12:46 +00:00
reimar 744d42b129 Fix ESD check: use an ESD function to actually check linking and do
not uselessly run resulting binary.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24461 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 14:45:08 +00:00
reimar 8351949b6f sigill_handler_sse is not needed and can not compile on 64 bit systems
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24460 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 14:19:22 +00:00
reimar 2f5f5d3b4c Do not check for X86_FXSR_MAGIC define, it is missing in newer
distribution/kernel headers.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24459 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:49:28 +00:00
reimar 62d005a974 Remove unused sigfpe handler
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24458 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:43:06 +00:00
reimar 38349bcac8 Remove test for SSE exception support that has been commented out since ages.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24457 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 13:25:20 +00:00
reimar 502368c206 Fix off-by-one error if fsize is odd (does handling that case even make sense?)
and remove a TODO comment that no longer applies.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24456 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:52:13 +00:00
reimar 73acce23fd Mark DTS tables as const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24455 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:47:15 +00:00
reimar 2be7f28a86 Fix 10l typo in syncword
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24454 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 12:39:02 +00:00
reimar c3d320c6ac Improved comments, based on patches by Ulion [ulion2002 gmail com]
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24453 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:56:04 +00:00
reimar cb9466a0b3 Simplify and fix big-endian hwac3 header generation code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24452 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 08:54:06 +00:00
reimar 62e3a9e6a6 Deobfuscate: use IMGFMT_RGB_DEPTH and IMGFMT_IS_BGR
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24451 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 18:36:04 +00:00
voroshil 7d44f8c906 Fix missing reset/initialization (with tv parameters) of
vbi subsystem after tv initialization.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24450 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 17:13:27 +00:00
ben 6474da1414 added monkey audio file extensions to extension table
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24449 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 17:06:36 +00:00
voroshil 4357e135eb Move AM_MEDIA_TYPE structure definition to mediatype.h.
Make inclusion of com.h and wine/*.h conditional,
this will allow reusing of mediatype.c code under MinGW
without requirement to include all remaining wine/* stuff.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24448 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 16:13:37 +00:00
reimar 429b15b71b Check wLongsPerEntry before using it.
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
2007-09-13 15:18:57 +00:00
diego 5f9fbb7124 Remove useless preprocessor check, _WINGDI_H is never defined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24446 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 14:12:06 +00:00
uau b54169f071 Add support for FFmpeg Monkey's Audio decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24445 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-13 13:47:22 +00:00
diego 43bd3a468e warning fixes:
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
2007-09-13 13:16:30 +00:00