zuxy
a353d4e055
Revert r24446 since it breaks mingw32 build: _WINGDI_H is defined in wingdi.h
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24510 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-15 07:46:38 +00:00
reimar
eaf7b8614f
live recordings can contain 0-size type 0 chunks, ignore them instead
...
of erroring out.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24509 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 21:17:48 +00:00
reimar
92f501d8b2
Move some more variable declarations
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24508 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 21:03:08 +00:00
reimar
abac8f8fab
Remove tabs and trailing whitespace
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24507 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:59:05 +00:00
reimar
d1ee624657
A few more useless ()
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24506 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:49:36 +00:00
reimar
bf86cc9f87
Minor simplifications
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24505 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:48:04 +00:00
reimar
9bb5a91413
Further simplify demux_ty_FindESHeader
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24504 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:41:32 +00:00
reimar
99ef8adf6f
Optimize demux_ty_FindESHeader
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24503 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:37:30 +00:00
reimar
9d885bbbe8
Remove some commented-out debugging code
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24502 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:18:00 +00:00
reimar
7ffd4426a3
Fix demux_ty_FindESHeader so it won't overread
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24501 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:09:39 +00:00
reimar
abfe1d69a1
Simplify demux_ty_FindESPacket by reusing demux_ty_FindESHeader
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24500 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 20:08:42 +00:00
reimar
f1f27ada1a
Remove unused demux_ty_FindESPacket parameter
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24499 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:55:09 +00:00
reimar
8d8edc990a
Simplify demux_ty_FindESHeader
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24498 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:53:09 +00:00
reimar
fb090bd8fa
Move variable declarations into the block where they are used
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24497 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:46:54 +00:00
reimar
15940ebaff
Another piece of duplicate code
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24496 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:34:17 +00:00
reimar
7d7cfea105
Avoid a big piece of duplicated code
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24495 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:30:25 +00:00
reimar
cb4d79be6b
Get rid of more code duplication
...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24494 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-09-14 19:13:47 +00:00
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
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
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
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