Commit Graph

48 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 53f42d7ecd Push "Building audio filter chain" up to verbose level.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17428 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-01-19 00:08:09 +00:00
diego 36e1974be0 Unify include path handling, -I.. is in CFLAGS.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-11-18 14:39:25 +00:00
diego f7e307ee4d Make a few more messages translatable by moving them into help_mp-en.h.
patch by Paul TT < paultt == at == hackerjournal == dot == it >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16794 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-10-18 11:11:25 +00:00
reimar 0446e090b1 Allow forcing of demuxers and codecs by prepending '+'
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16322 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-30 23:56:24 +00:00
faust3 5d4798359e 10l, missing return
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16307 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-25 18:22:12 +00:00
reimar 7daf15dc89 -af-adv force=1 is now default (and thus also lavcresample)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15951 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-07-10 09:16:24 +00:00
reimar d22ae4a4d9 make -srate work again, unify audio filter init and preinit.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15812 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-24 10:50:53 +00:00
gpoirier 9dd8f241ac adds some more -identify output, patch by kiriuja < mplayer DASH patches PAM en DASH directo POUM net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15790 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-20 23:07:35 +00:00
hzoli 067c0482d9 Remove file-global mpadec, add ad_driver member to sh_audio_t instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14820 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 11:17:43 +00:00
alex 6dbf6b4df1 finally remove the refences to bps outside libaf. also simplification of some messages and removed redundants
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14819 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 11:11:07 +00:00
hzoli e3cfcb169f If -af-adv force=4 is in effect, use ADCTRL_QUERY_FORMAT to query the
ad codec about float support and set floatne format if supported.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14816 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 10:39:16 +00:00
alex abe18b2f02 more verbose message
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14815 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-25 10:21:14 +00:00
iive 21dd8f38b9 Revert sh_audio->wf freeing.
Freeing should be done elsewhere, as it prevents second codec to access the same structure.
Reported by elupus at ecce.se


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14528 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-17 17:27:39 +00:00
alex 507121f7fe removing AFMT_ dependancy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-27 17:30:15 +00:00
iive a7fc263cd0 Free WAVEFORMATEX in sh_audio when all other sh_audio members are freed.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13956 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-11-15 15:05:12 +00:00
reimar 6068c1846e moved sh_audio initialization from dec_audio to demuxer.c to fix
-hr-mp3-seek bug (pts was -inf after seeking) and remove the workaround
from demux_audio.c.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13358 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-16 19:51:13 +00:00
reimar 1499a0df6f removed #ifdefs that are already handled by libao2/afmt.h
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12477 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-14 21:16:00 +00:00
rfelker 6a3e54b5f1 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12385 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-05-01 20:00:04 +00:00
rfelker 672cd3861f not pretty, but at least it prevents the channels from getting out of order...
the real solution is to get rid of libaf (probably the worst code in mplayer!)
and replace it with a good audio layer...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11858 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-01-27 06:30:16 +00:00
rfelker 2391e4c61a 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11856 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-01-27 05:10:59 +00:00
alex 7504474eb9 minor leak fix
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10804 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-09-02 20:02:37 +00:00
diego cfa19109e9 codecs.conf is obsolete.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10684 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-08-22 22:18:08 +00:00
arpi ed9296d845 renames: DATADIR->MPLAYER_DATADIR, CONFDIR->MPLAYER_CONFDIR, LIBDIR->MPLAYER_LIBDIR
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10273 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-06-09 12:15:48 +00:00
arpi 12e073b638 1000l bug (double free() when libaf init failed)
thanx for their help:
Michael Mauch <michael.mauch@gmx.de>
Marc Packenius <marc@freenet-rz.de>
Bartek Kulicki <bartek@interecho.com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9133 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-28 00:59:34 +00:00
henry 4621209542 10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9019 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-19 14:48:19 +00:00
arpi b1956ff824 2-pass libaf initialization to get better filter chain.
-channels, -format, -srate function changed, they affect codec & preinit
outformat only, use -af resample=XXX,channels=YYY,format=ZZZ to override.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8996 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-18 17:34:02 +00:00
anders c9052b1092 Adding support for more logical libaf configuration
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8970 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-17 01:00:07 +00:00
anders 66f4e56389 New features:
-- Support for runtime cpu detection
-- Stand alone compile of libaf
-- Unlimited number of channels (compiletime switch)
-- Sample format defined by bit-fields
-- New formats: float, A-Law and mu-law
-- Format conversion set in human readable format
   i.e. format=4:us_be to set 32 bit unsigned big endian output
-- Format reporting in human readable format
-- Volume control has only one parameter for setting the volume
   i.e. volume=-10.0:1:0:1 to set atenuation = -10dB


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8168 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-12 12:33:56 +00:00
alex 7ea0933b9e dlopen() support for ad and vd
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8153 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-11 17:28:41 +00:00
arpi f859d013a8 *HUGE* set of compiler warning fixes, unused variables removal
based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8124 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-06 23:54:29 +00:00
arpi 39fe4d0cd3 verbose can be negative
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8028 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-01 17:46:45 +00:00
arpi 9d9dbdab95 reset channels too
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7670 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-08 22:55:55 +00:00
anders 735de60232 Adding -format and -af switches
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7615 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-06 11:23:02 +00:00
arpi 3053a8b7f2 aufio filter layer (libaf) integration to libmpcodecs, mplayer and mencoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7605 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-05 22:55:45 +00:00
arpi 4b05808939 removed obsolote func, some cosmetics of AUDIO: msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7562 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-29 21:52:10 +00:00
arpi dbf0fe78c6 -ac/-afm rewrite, now works the same way as -vc/-vfm
including audio codec fallbacks if init failed


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7523 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-28 02:23:20 +00:00
arpi 1fbd3baf78 best audio/video codec selection & init moved to libmpcodecs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7503 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-25 23:45:34 +00:00
arpi fc474a8e11 fixed uninit order
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7241 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-01 23:33:30 +00:00
arpi 09d8c4ddf0 -afm/-vfm help implemenetd, some cosmetics of ad/vd codec names/comments
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7192 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-31 13:09:23 +00:00
arpi 1b667f61ba -afm/-vfm migration from ID (int) to NAME (string) - simplifies code and makes dlopen()'ing possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7181 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-30 21:44:20 +00:00
jaf 408cf7a6bb messages moved from dec_??d?o.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6990 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-13 16:04:16 +00:00
alex e8e9d30803 typo
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6187 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-25 11:42:40 +00:00
arpi c835270280 big cosmetics patch, cleanup of messages printed by mplayer and libs.
some printf->mp_msg conversion, and some debug messages moved from warn/info to v/dbg2
mplayer's output is now shorter, readable and consistent


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6139 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-20 03:25:26 +00:00
arpi afefdc4305 always reser audio input buffer pointer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6050 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-12 00:44:32 +00:00
albeu 4189e06396 printf to mp_msg
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5934 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-02 10:40:35 +00:00
arpi aff40c7823 audio input buffer allocation/free cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5459 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-01 17:58:04 +00:00
arpi b6ef6abbd5 imporetd from MPlayerXP, with small modification
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5343 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-25 21:23:06 +00:00