Commit Graph

142 Commits

Author SHA1 Message Date
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
diego 89d549f984 Make clean/distclean behave uniformly in all directories.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17489 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-27 00:06:42 +00:00
gpoirier 2c984298a5 Reverse commit 31 Dec 2005 18:56:35 -0000 1.34
This was an incorrect fix made at the codec when it should be done at the demuxer level.
static variables in codecs are ALWAYS wrong: the demuxer is supposed to have already removed all the junk
Does anyone have an idea of a fix for the demuxer?
(discussed on IRC)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17301 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-03 22:06:12 +00:00
gpoirier 86b89307b7 "Currently mplayer looks for only one MP3 frame sync. The attached
patch makes it to look for two consecutive valid MP3 frame headers,
reducing the probability of false positives, which causes Bug 380.

Funny that the fix is so simple. Seems that someone has forgotten to
initialize MP3_resync correctly.

Also this is the recommended way to sync MP3 frames. See
http://www.dv.co.yu/mpgscript/mpeghdr.htm. "

Original thread:
Date: Dec 31, 2005 10:15 AM
Subject: [MPlayer-dev-eng] [PATCH] Try twice when searching for MP3 frame header, fixes Bug 380


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17280 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-12-31 18:56:35 +00:00
diego 19a7b5869b Unify include paths, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16990 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-15 18:14:07 +00:00
rfelker 56527d29bc 10l broken asm crap needs an external name
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16859 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-25 19:29:51 +00:00
rfelker f36cc4c21b do not export useless symbols! fixed compile bug with decode support in lame
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16853 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-25 17:08:49 +00:00
diego 01ad22ac41 Mark modified imported files as such to comply with (L)GPL §2a.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15168 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-15 22:21:35 +00:00
henry 316d1bd49e Use proper parameter range in stereo test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15104 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-04-10 16:39:00 +00:00
diego 3ebf6f0135 Reduce excessive verbosity.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13947 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-15 09:09:29 +00:00
reimar 8e882b5b3b compilation fix for gcc 3.4.2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13919 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-11 13:33:30 +00:00
diego 5b0d96c6b4 Handle "xxx.h" vs "../xxx.h" include paths in a consistent way.
Based on a patch by Sebastian Hegler <s_hegler at gmx dot de>.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13788 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-10-28 01:15:53 +00:00
rtognimp 7cd4d089be Index must be positive to prevent endless loop on bad data
Based on an idea by iive


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13337 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-14 21:02:19 +00:00
rathann d9a5e00183 small gcc warning fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13189 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-08-28 20:59:49 +00:00
faust3 9bb8541622 avoid outoptimization of static variables patch by ismail dönmez <ismail.donmez at gmail.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12946 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-08-03 18:54:26 +00:00
atmos4 b0f5574d7a ICC 8.0 compilation fixes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12929 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-08-02 03:35:50 +00:00
alex 0fc20ac930 ranlib cleanup by Dan Christiansen
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12633 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-06-24 12:52:17 +00:00
michael 813b34f68f attribute_used patch by (VMiklos <mamajom at axelero dot hu>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12304 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-26 19:47:50 +00:00
alex baa587170e attribute_used for gcc3.4
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12293 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-26 10:12:40 +00:00
alex 681827cb68 reorder funcs to avoid warnings/errors (gccs are nowadays are more pickier about code than gcc2.95 with -ansi)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12292 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-26 10:08:16 +00:00
alex 028ad0664b some more globals
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12135 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 01:24:34 +00:00
alex b5142b3879 removing more globals
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12133 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 01:11:59 +00:00
alex 0bdf67044c fix symbol clashes when linking with libmp3lame including mp3 decoder, man, mp3lib is so much bloated
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12132 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 01:06:21 +00:00
diego ec195cae4f copyright update by the author
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11981 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-02-19 04:11:00 +00:00
alex 31ff51c869 reverting my last change as buggy gcc 3.x fails with it :(
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11267 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-25 23:13:54 +00:00
alex c83a712618 10l to me, noticed by Bjorn Sandell
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11247 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-23 12:10:44 +00:00
alex 59a7eeda13 100l to Nick
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11245 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-23 00:01:23 +00:00
alex 44792402b2 removed obsoleted (or never ending) code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11242 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-22 21:08:46 +00:00
alex cf069df98e removed the stdcall convention
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11241 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-22 20:58:46 +00:00
nexus ab156d8eba remove debug message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10553 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-09 19:15:40 +00:00
arpi bb0e90b4f7 layer-1 support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10469 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-07-24 22:12:59 +00:00
arpi 8810c95cf7 100l
found by Koth


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10389 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-07-06 18:03:11 +00:00
alex 0aa87dc1fe getcpucaps support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10373 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-07-04 21:38:17 +00:00
faust3 b378151991 disable L3: BigValues too large message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10350 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-30 12:46:13 +00:00
arpi 4cb0807bce merged with mpg123 0.59s-pre
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10344 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-28 22:52:36 +00:00
alex d0cf347a62 moved 3dnow and 3dnowex dct36 optimisations into gcc inline assembly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10323 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-22 03:32:16 +00:00
alex 0865846ecb fixed bandInfo name clash with libmp3lame v3.93.1 (longLimit and shortLimit are also only used in layer3.c so it's safe to make them static too - avoiding further clashes)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10322 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-21 23:45:07 +00:00
faust3 5d1765ffc7 objfix has to be run on MINGW32, too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9772 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-31 17:08:16 +00:00
arpi fdb993b995 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9153 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-29 10:00:40 +00:00
arpi 14dbc88482 In mp3lib/sr1.c, look at the line 226:
if(fr->sampling_frequency>8) return FALSE;  // valid: 0..8
which allows fr->sampling_frequency to go up to 8.
Obviously, the code does not bother about what would happen if
fr->sampling_frequency lies in the range [3,8].
patch from Nilmoni Deb, Nick?, Rich


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9131 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-28 00:25:38 +00:00
arpi 54cbe5eec3 The two attached patches *should* allow for proper
compilation of the AltiVec stuff on both Darwin
and non-Darwin system. They've only been tested
for compilation on Debian using Debian's gcc-3.2.
Romain Dolbeau <dolbeau@irisa.fr>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9123 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-27 21:47:25 +00:00
arpi 15e32ab3b7 Propolice catches an overflow in dct64_k7.c:
mplayer: stack overflow in function dct64_MMX_3dnowex
patch by Björn Sandell <biorn@dce.chalmers.se>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9040 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-19 21:50:50 +00:00
arpi f0c90c8e00 An altivec-optimized DCT64 for mp3lib
(partially, it seems roughly three times as fast as
    the C code according to quick-n-dirty gprof tests)
    This one is bit-perfect.
patch by Romain Dolbeau <dolbeau@irisa.fr>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9003 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-18 19:28:53 +00:00
alex 593a458f0c fixing that f*cking linker 'bug' e.g. naming config with libmp3lame
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8561 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-24 22:33:46 +00:00
arpi aef5a1f041 cleanup & fix cpu detection & init stuff
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8546 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-24 00:06:55 +00:00
arpi 921712c4ca don't redefine decwin as static
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8545 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-24 00:06:33 +00:00
arpi e12f387870 decode_i586.c version uses %ebp for its own use, so:
- we need to compile this with -fomit-frame-pointer or we cannot access the
function parameters
- we need to save & restore %ebp, or we'll destroy the caller's stack ptr


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8544 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-24 00:05:43 +00:00
michael 113aada89c removing very ugly esp games / fixes the propolice problem on OpenBSD (patch by Björn Sandell <biorn at dce dot chalmers dot se>)
i hope this is ok for all compilers ...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8454 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-12-15 10:54:33 +00:00
michael 7a5657ff93 forgotten mangle patch by (Björn Sandell <biorn at dce dot chalmers dot se>)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8237 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-19 23:35:51 +00:00
arpi ad8bc3c607 layer-1 stream parsing (NOT decoding) support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7521 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-28 02:03:09 +00:00