summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ad_realaud.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove win32/qt/xanim/real binary codecs loadingwm42012-08-161-463/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove the win32 loader - the win32 emulation layer, as well as the code for using DirectShow/DMO/VFW codecs. Remove loading of xanim, QuickTime, and RealMedia codecs. The win32 emulation layer is based on a very old version of wine. Apparently, wine code was copied and hacked until it was somehow able to load a limited collection of binary codecs. It poked around in the code segment of some known binary codecs to disable unsupported win32 API calls to make them work. Example from module.c: for (i=0;i<5;i++) RVA(0x19e842)[i]=0x90; // make_new_region ? for (i=0;i<28;i++) RVA(0x19e86d)[i]=0x90; // call__call_CreateCompatibleDC ? for (i=0;i<5;i++) RVA(0x19e898)[i]=0x90; // jmp_to_call_loadbitmap ? for (i=0;i<9;i++) RVA(0x19e8ac)[i]=0x90; // call__calls_OLE_shit ? for (i=0;i<106;i++) RVA(0x261b10)[i]=0x90; // disable threads Just to show how utterly insane this code is. You wouldn't want even your worst enemy to have to maintain this. In fact, it seems nobody made major changes to this code ever since it was committed. Most formats can be decoded by libavcodecs these days, and the loader couldn't be used on 64 bit platforms anyway. The same is (probably) true for the other binary codecs. General note about how support for win32 codecs could be added back: It's not possible to replace the win32 loader code by using wine as library, because modern wine can not be linked with native Linux programs for certain reasons. It would be possible to to move DirectShow video decoding into a separate process linked with wine, like the CoreAVC-for-Linux patches do. There is also the mplayer-ww fork, which uses the dshownative library to use DirectShow codecs on Windows.
* cleanup: shut up more warningsClément Bœsch2011-05-061-2/+5
|
* Merge svn changes up to r30967Uoti Urpala2010-04-261-10/+13
|\
| * Fix build due to codecs_path vs. codec_path typo.diego2010-03-231-6/+6
| | | | | | | | | | | | | | patch by Erik Auerswald, auerswal unix-ag.uni-kl de git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30950 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Get rid of pointless def_path variable; use codec_path directly instead.diego2010-03-231-6/+6
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30949 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Real binary loader code should respect the binary codec path.diego2010-03-231-10/+13
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30948 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r30907Uoti Urpala2010-04-261-6/+6
|\|
| * Replace separate Win32, XAnim and Real codec directories by one global dir.diego2010-03-141-6/+6
| | | | | | | | | | | | | | | | | | Nowadays MPlayer does not use the codecs from other installed programs. A runtime setting will soon take over the rare case that binary codecs should be searched for in non-standard directories. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30888 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Revert marking seemingly unused RealAudio/RealVideo-related functions as static.diego2010-02-171-3/+31
| | | | | | | | | | | | | | | | | | The functions are required to load binary Real codecs, so they need to be kept. Group all functions together in ad_realaud.c because all the functions are used to load audio binaries and only some to load video binaries. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30606 b3059339-0415-0410-9bf9-f77b7e298cf2
| * libmpcodecs: Mark functions not used outside of their files as static.diego2010-02-161-2/+4
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30597 b3059339-0415-0410-9bf9-f77b7e298cf2
| * Mark all ad_info_t/vd_info_t structure declarations as const.diego2010-02-121-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30546 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | | | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* | Merge svn changes up to r30463Uoti Urpala2010-03-091-0/+17
|\| | | | | | | | | | | Note that r30455 is wrong, that commit does not in fact change the default behavior as claimed in the commit message. It only breaks "-af-adv force=0", which was already pretty much useless though.
| * Add missing license headers to all files in the libmpcodecs directory.diego2010-01-301-0/+17
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30463 b3059339-0415-0410-9bf9-f77b7e298cf2
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-18/+18
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-18/+18
| |
* | Translation system changes part 2: replace macros by stringsAmar Takhar2009-07-071-1/+1
| | | | | | | | | | Replace all MSGTR_ macros in the source by the corresponding English string.
* | Translation system changes part 1: wrap translated stringsAmar Takhar2009-07-071-1/+1
| | | | | | | | | | Replace mp_msg() calls which have a translated string as the format argument with mp_tmsg and add _() around all other translated strings.
* | Merge svn changes up to r27374Uoti Urpala2008-07-301-14/+14
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cfg-common-opts.h cfg-mplayer.h command.c configure libmpcodecs/dec_video.c libmpcodecs/vd.c libmpcodecs/vf_vo.c libmpdemux/demuxer.h libmpdemux/stheader.h mp_core.h mplayer.c stream/stream_radio.c
| * Start unifying names of internal preprocessor directives.diego2008-07-301-14/+14
| | | | | | | | | | | | | | | | Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Make audio decoder description structs constUoti Urpala2008-04-261-1/+1
|/ | | | | | Make the per-decoder struct ad_functions and its ->info struct constants. Same for the mpcodecs_ad_drivers[] table of pointers to those structs.
* Move variable into the block where it actually usedreimar2007-06-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23651 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables.diego2007-05-281-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23397 b3059339-0415-0410-9bf9-f77b7e298cf2
* Include loader/ prefix in #include path everywhere.diego2007-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22595 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused function pointers, they probably had incorrect prototypesreimar2006-12-031-12/+4
| | | | | | | anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21482 b3059339-0415-0410-9bf9-f77b7e298cf2
* Quit on eof, was broken by r17150rtogni2006-07-191-0/+2
| | | | | | | Noticed by LR hephooey gmail com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19140 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move #ifdefs around complete files into the build system.diego2006-06-211-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18774 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce Real DLL/so loading verbosity, OKed by Roberto.diego2006-03-031-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17722 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move audio packets reordering from codec interface to demuxers for realrtognimp2005-12-091-100/+26
| | | | | | | | | files (old and new format), pass only real extradata to the codec Enable cook codec from lavc, prefer lavc codecs for 14_4 and 28_8 formats. Disable internal 28_8, it's broken now and will be removed soon git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17150 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify include path handling, -I.. is in CFLAGS.diego2005-11-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17013 b3059339-0415-0410-9bf9-f77b7e298cf2
* Check for eof instead of decoding the same data over and over.reimar2005-10-011-0/+1
| | | | | | | The whole code could use a lot more checks on return values... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16625 b3059339-0415-0410-9bf9-f77b7e298cf2
* Too little memory alloced.reimar2005-07-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16038 b3059339-0415-0410-9bf9-f77b7e298cf2
* DragonFly BSD supportdiego2005-05-251-1/+1
| | | | | | | patch by Joerg Sonnenberger <joerg - at - britannica - dot - bec - dot - de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15567 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always select correct descramblig matrix for sipr audiortognimp2005-01-251-1/+1
| | | | | | | Fixes brokenaudio.rmvb git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14597 b3059339-0415-0410-9bf9-f77b7e298cf2
* remove mac shlb support to use new helix codec for realvideo support on osxnplourde2004-11-031-132/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13861 b3059339-0415-0410-9bf9-f77b7e298cf2
* another 10lalex2004-06-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12634 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lalex2004-06-241-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12630 b3059339-0415-0410-9bf9-f77b7e298cf2
* support for realvideo codecs under macosx, original patch by Donnie Smithalex2004-06-241-3/+140
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12629 b3059339-0415-0410-9bf9-f77b7e298cf2
* minimal fix for alex's 1000000000000l compile errors. imo the fix inrfelker2004-04-301-0/+1
| | | | | | | | | | aviheader.h is totally correct. defining useless typedefs that can conflict with other headers is bad practice. i don't like editing mmreg.h but oh well... if you have a better fix, commit it! finally, the fix in the ad_ and vd_ files seems totally correct. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12357 b3059339-0415-0410-9bf9-f77b7e298cf2
* sysm --> syms typo fix by Joey Parrishdiego2003-08-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10653 b3059339-0415-0410-9bf9-f77b7e298cf2
* Win32 codec paths in vd_realvid.cdiego2003-07-191-1/+1
| | | | | | | Patch by Glyn Kennington <glyn.kennington at hertford.oxford.ac.uk>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10445 b3059339-0415-0410-9bf9-f77b7e298cf2
* OpenBSD support by Bjorn Sandell <biorn@dce.chalmers.se>alex2003-05-201-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10143 b3059339-0415-0410-9bf9-f77b7e298cf2
* realaudio 28_8 and 14_4 dll supportfaust32003-05-171-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10118 b3059339-0415-0410-9bf9-f77b7e298cf2
* use dynamic path[] allocation and possible better wraSetDLLAccessPath ↵alex2003-05-121-1/+11
| | | | | | mechanism :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10102 b3059339-0415-0410-9bf9-f77b7e298cf2
* cygwin/mingw32 support by Sascha Sommeralex2003-05-111-2/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10094 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support for codec 14_4 and 28_8rtognimp2003-04-301-1/+15
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10031 b3059339-0415-0410-9bf9-f77b7e298cf2
* - removed unused global 'handle'arpi2003-03-091-16/+28
| | | | | | | | | | | - added __builtin_delete() for cook (rp9 version at least) - use OpenCodec2 when avaialble, 2nd param is codecpath (traced from rp8) - fallback to i_bps=12000 when raGetFlavorProperty(1) fails (some rp9 cook flavors) - disabled dlclose, caused memcorruption (FIXME) inspired by bugreports/patches by Balatoni Denes <pnis@coder.hu> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9552 b3059339-0415-0410-9bf9-f77b7e298cf2
* windows support and eleminating some 10ls. Win32 ATRC has audio artifacts, ↵alex2003-02-111-26/+239
| | | | | | Win32 SIPR is just silent, but at least Win32 COOK works nice -- at least by me, on linux git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9396 b3059339-0415-0410-9bf9-f77b7e298cf2
* - realaudio ATRC (sony atrac3) codec supportarpi2002-11-041-3/+3
| | | | | | | | - fixed passing of codecdata from demuxer to codec patch by Fabian Franz <FabianFranz@gmx.de> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8095 b3059339-0415-0410-9bf9-f77b7e298cf2
* tell the codec wrapper the codec path (fixes realaudio Sipr)arpi2002-10-161-3/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7753 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixesarpi2002-09-291-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7558 b3059339-0415-0410-9bf9-f77b7e298cf2
* tons of warning fixes, also some 10l bugfixes, including Dominik's PVA bugarpi2002-09-221-10/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7473 b3059339-0415-0410-9bf9-f77b7e298cf2
* -afm/-vfm migration from ID (int) to NAME (string) - simplifies code and ↵arpi2002-08-301-1/+0
| | | | | | makes dlopen()'ing possible git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7181 b3059339-0415-0410-9bf9-f77b7e298cf2
* sync driver names with codec-cfgarpi2002-08-301-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7175 b3059339-0415-0410-9bf9-f77b7e298cf2
* renamed to match driver family namearpi2002-08-301-0/+251
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7173 b3059339-0415-0410-9bf9-f77b7e298cf2