summaryrefslogtreecommitdiffstats
path: root/loader/dmo
Commit message (Collapse)AuthorAgeFilesLines
* cleanup: Silence compilation warnings on MinGW-w64wm42012-03-011-2/+3
| | | | | | | | | | | | | | | | | | | Some of the code, especially the dshow and windows codec loader parts, are extremely hacky and likely full of bugs. The goal is merely getting rid of warnings that could obscure more important warnings and actual bugs, instead of fixing actual problems. This reduces the number of warnings from over 500 to almost the same as when compiling on Linux. Note that many problems stem from using the ancient wine-derived windows headers. There are some differences to the "proper" windows header. Changing the code to compile with the proper headers would be too much trouble, and it still has to work on Unix. Some of the changes might actually break compilation on legacy MinGW, but we don't support that anymore. Always use MinGW-w64, even when compiling to 32 bit. Fixes some warnings in the win32 loader code on Linux too.
* Do not cast the results of malloc/calloc/realloc.diego2010-02-262-3/+3
| | | | | | | | These functions return void*, which is compatible with any pointer, so there is no need for casts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove pointless empty lines at EOF.diego2010-02-202-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add header #include for print_wave_header() instead of a forward declaration.diego2010-02-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30636 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove extern "C" declarations from loader code.diego2010-02-111-8/+0
| | | | | | | Our loader code is not a general-purpose library and not used from C++. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30538 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add required header #includes to satisfy 'make checkheaders'.diego2010-01-042-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30213 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop -Iloader from CPPFLAGS for the loader subdirectory.diego2010-01-046-16/+16
| | | | | | | Instead use full relative paths in #includes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30212 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-132-26/+26
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing 'void' to parameterless function declarations.diego2009-05-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29254 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change some printf calls to 'Debug printf' so as not to pollute stdout.diego2008-12-111-6/+6
| | | | | | | based on a patch by Zhou Zongyi, zhouzongyi pset.suntec net git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28128 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless 'extern' keywords.diego2008-12-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename loader/driver.[ch] to loader/drv.[ch], otherwise loader/driver.h candiego2008-06-081-1/+1
| | | | | | | conflict with the header by the same name in loader/wine/driver.h. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27031 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use consistent #include paths without "../".diego2008-04-282-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26576 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace __MINGW32__ preprocessor check with proper HAVE_SYS_MMAN_H check.diego2008-03-011-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26136 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add MPLAYER_ prefix to multiple inclusion guards.diego2008-02-236-18/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26077 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove $Id$ tags, they make diffs between different versionsreimar2008-01-271-1/+0
| | | | | | | harder to read than necessary. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25877 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a ton of illegal identifiers. Identifiers starting with __ or _ and adiego2008-01-208-30/+30
| | | | | | | | capital letter are reserved for the system, those starting with _ are reserved at the file level. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25822 b3059339-0415-0410-9bf9-f77b7e298cf2
* consistency cosmeticsdiego2008-01-012-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25575 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add explanatory comments to the #endif part of multiple inclusion guards.diego2007-12-311-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25563 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix for:voroshil2007-09-101-5/+5
| | | | | | | | | | | | | | | | | | | dshow/DS_Filter.c: In function 'DS_Filter_CopySample': dshow/DS_Filter.c:103: warning: dereferencing type-punned pointer will break strict-aliasing rules dshow/DS_Filter.c:185: warning: dereferencing type-punned pointer will break strict-aliasing rules dshow/DS_Filter.c:191: warning: dereferencing type-punned pointer will break strict-aliasing rules dshow/DS_Filter.c:198: warning: dereferencing type-punned pointer will break strict-aliasing rules dshow/DS_Filter.c:220: warning: dereferencing type-punned pointer will break strict-aliasing rules dshow/DS_Filter.c:245: warning: dereferencing type-punned pointer will break strict-aliasing rules dmo/dmo.c: In function 'DMO_FilterCreate': dmo/dmo.c:73: warning: dereferencing type-punned pointer will break strict-aliasing rules dmo/dmo.c:79: warning: dereferencing type-punned pointer will break strict-aliasing rules dmo/dmo.c:86: warning: dereferencing type-punned pointer will break strict-aliasing rules dmo/dmo.c:90: warning: dereferencing type-punned pointer will break strict-aliasing rules dmo/dmo.c:93: warning: dereferencing type-punned pointer will break strict-aliasing rules git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24425 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fix:diego2007-09-101-1/+1
| | | | | | | dmo/dmo.c:118: warning: unused variable 'vi' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24413 b3059339-0415-0410-9bf9-f77b7e298cf2
* warning fixes:diego2007-09-101-2/+0
| | | | | | | | | | dmo/DMO_VideoDecoder.c: In function 'DMO_VideoDecoder_DecodeInternal': dmo/DMO_VideoDecoder.c:299: warning: unused variable 'ptr' dmo/DMO_VideoDecoder.c: In function 'DMO_VideoDecoder_SetDestFmt': dmo/DMO_VideoDecoder.c:366: warning: unused variable 'stoped' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24412 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of superfluous NOAVIFILE_HEADERS #define, it was always enabled anddiego2007-06-022-15/+0
| | | | | | | cluttered the code. Blessed by Reimar. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23447 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use explicit path for headers from the dshow/ subdirectory.diego2007-03-152-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22625 b3059339-0415-0410-9bf9-f77b7e298cf2
* Precent overflow of this->m_sVhdr->bmiHeader buffer, may have been rtogni2007-02-111-0/+1
| | | | | | | | exploitable. Reported by Moritz Jodeit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22204 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove illegal definition of underscored-prefixed symbol "__MODULE__":gpoirier2007-01-262-4/+0
| | | | | | | | | | | | | | All underscored-prefixed symbols have the right re-defined by the compiler, so it's definitely not safe to use any. ICC doesn't seem to like it, GCC doesn't seem to care. Original thread: date: Jan 25, 2007 2:41 PM subject: [MPlayer-dev-eng] [PATCH] remove illegal underscored-prefixed symbols AND date: 01/25/2007 11:43 AM subject: Re: [MPlayer-dev-eng] [PATCH] compiling with Intel C git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22019 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make loader Makefile non-recursive.diego2006-11-251-48/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21201 b3059339-0415-0410-9bf9-f77b7e298cf2
* Unify dep/depend targets.diego2006-11-201-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21096 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove reference to non-existent variable.diego2006-08-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19502 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move all internal -I parameters to the front of CFLAGS to avoid using externaldiego2006-08-171-1/+1
| | | | | | | | header files that happen to have the same name as internal ones. based on a patch by Vladislav Naumov, vladislav.naumov **at** gmail **dot** com git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19426 b3059339-0415-0410-9bf9-f77b7e298cf2
* OPTFLAGS already includes EXTRA_INC.diego2006-07-121-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19042 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 2reynaldo2006-07-021-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18883 b3059339-0415-0410-9bf9-f77b7e298cf2
* CVS --> Subversion in copyright noticesdiego2006-06-221-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18786 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change "Supress" to "Suppress" in a couple comments.corey2006-06-071-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18614 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove now obsolete .cvsignore files.diego2006-06-021-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18556 b3059339-0415-0410-9bf9-f77b7e298cf2
* include MSGL_* definitionshenry2006-03-271-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17979 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert printfs in aviprint.c to mp_msg and give the information printingdiego2006-03-271-3/+3
| | | | | | | functions in this file a verbosity_level parameter. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17978 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Shorten overly long lines, put SRCS/OBJS on individual linesdiego2006-03-251-1/+6
| | | | | | | to ease patching in the future. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17944 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make clean/distclean behave uniformly in all directories.diego2006-01-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17489 b3059339-0415-0410-9bf9-f77b7e298cf2
* hardcode SYNC flag, so no problems could rise if first frame is skippediive2005-07-051-1/+1
| | | | | | | | frame skipping is still done by passing NULL buffer to the decoder patch by Shachar Raindel <shacharr at gmail.com> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15920 b3059339-0415-0410-9bf9-f77b7e298cf2
* This currently sends control characters to the terminal instead ofrtognimp2005-05-261-14/+18
| | | | | | | | | meaningful names. Since some names are longer than 4 characters, I propose the following approach. Patch by + a ! guru #at# sympatico ! ca + git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15575 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark modified imported files as such to comply with GPL ยง2a.diego2005-04-151-0/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15167 b3059339-0415-0410-9bf9-f77b7e298cf2
* fix for the no video/black screen with some dmo/wmv9 moviespl2003-09-201-2/+3
| | | | | | | (for some videos: bits=12 and once /8 the allocated buffer is 50% too small) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10888 b3059339-0415-0410-9bf9-f77b7e298cf2
* last mingw32 support patch by Sascha Sommeralex2003-04-241-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9979 b3059339-0415-0410-9bf9-f77b7e298cf2
* cygwin support patch by Sascha Sommer and some fixes by mealex2003-04-213-2/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9968 b3059339-0415-0410-9bf9-f77b7e298cf2
* 10lalex2003-04-211-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9964 b3059339-0415-0410-9bf9-f77b7e298cf2
* cbAlign=1 fix for proper Windows support (noticed by Sascha Sommer)alex2003-02-251-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9504 b3059339-0415-0410-9bf9-f77b7e298cf2
* compiler warning fixesarpi2002-12-142-5/+8
| | | | | | | based on patch by Dominik Mierzejewski <dominik@rangers.eu.org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8452 b3059339-0415-0410-9bf9-f77b7e298cf2
* DMO Audio support (ugly, needs cleanup)arpi2002-12-013-1/+186
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8326 b3059339-0415-0410-9bf9-f77b7e298cf2
* .depend should be ignored.diego2002-11-281-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8311 b3059339-0415-0410-9bf9-f77b7e298cf2
* DMO interfaces (copied/converted(c++->c) from avifile)arpi2002-11-2610-0/+1297
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8295 b3059339-0415-0410-9bf9-f77b7e298cf2