Commit Graph

1968 Commits

Author SHA1 Message Date
eugeni 00cce8eb30 Add global ass_force_reload flag.
If it is set, renderer is reconfigured before the next frame.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25841 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-23 21:18:30 +00:00
rtogni 6416245eba Zero codec_inited in the init() function, so that it's cleared everytime
the codec is inites (previously was only cleared once at start time).
Fixes a crash when -loop n (with n >= 2) is used with a qtvideo codec.

Patch by KO Myung-Hun komh chollian net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25839 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-23 20:48:50 +00:00
iive 1bc5cc764b Use the proper option name for constant quantizer
in the hint that user gets if there isn't any of
the essential options.



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25837 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-23 14:32:15 +00:00
reimar 7d3a813f17 Remove useless casts
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25828 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-21 19:59:27 +00:00
reimar d540495b6a Avoid warning:
vf_detc.c:273: warning: ‘dropflag’ may be used uninitialized in this function


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25795 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-19 11:44:49 +00:00
reimar 73f743f5c5 Remove unused variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25698 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 15:45:47 +00:00
reimar b0a11dd7e9 Move uselessly global variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25697 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 15:43:32 +00:00
reimar 2d243412f2 Colourspace conversions do _not_ belong into a decoder!
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25695 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 15:26:24 +00:00
reimar d100c41da0 Cosmetics: get rid of huge amounts of trailing whitespace
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25694 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 15:01:05 +00:00
reimar 574edcc737 Remove an unused global variable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25693 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:58:39 +00:00
reimar e15487b068 Avoid uselessly global variables
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25692 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:56:11 +00:00
reimar d63fb8ba99 Replace the persistent CODECS_FLAG_SELECTED by a local "stringset" with
an almost-trivial implementation.
This allows making the builtin codec structs const, and it also makes
clearer that this "selected" status is not used outside the init functions.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25689 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-12 14:05:46 +00:00
eugeni 85413c62e8 Use malloc for codecdata. Fixes segfault in free_sh_sub.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25666 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-10 19:47:18 +00:00
uau b5aa5692cd Remove unnecessary <signal.h> includes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25654 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-09 01:17:49 +00:00
diego e27d606714 Fix illegal identifiers: Names starting with __ or _ and uppercase are reserved
for the system, names starting with _ are reserved at file level.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25635 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 23:20:15 +00:00
rtogni 7cbf2af4a3 Do not pass timestamp to realvideo binary decoder
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25626 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 13:49:07 +00:00
diego 39fb4f4808 Remove unused definition.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25625 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-06 13:01:41 +00:00
lorenm ffc9727f99 remove code for colorspaces x264 doesn't support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25598 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-05 11:03:54 +00:00
lorenm 06b0571bf9 fix artifacts in -vf fspp. regression in r23476.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25596 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-05 10:42:39 +00:00
diego 2b6af2000b Add multiple inclusion guards to all header files that lack them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25581 b3059339-0415-0410-9bf9-f77b7e298cf2
2008-01-01 21:35:58 +00:00
diego fba0b66ff9 Add explanatory comments to the #endif part of multiple inclusion guards.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25563 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-31 16:15:50 +00:00
diego 13e29fcfe2 Remove unused static variable pass, fixes the warning:
ae_lame.c:72: warning: 'pass' defined but not used


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25531 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-27 11:19:54 +00:00
reimar 9e434fa014 Add a missing free of the avctx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25528 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-25 12:22:50 +00:00
rik b15fe151d6 change license from GPLv2 to 'GPL v2 or later', requested by Diego, I can do that since I wrote the files (based on other stuff from MPlayer (and some external things under GPL v2 or later))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25454 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-18 21:43:12 +00:00
reimar b5fa2f008a Make init_video function in dec_video static, it is not used outside that file.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25354 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-11 19:56:40 +00:00
ulion 1ed6e96cfb Fix all current known multi-channel wrong order problems by adding
common functions for channel reordering.
This fixes these modules by adding channel reordering code for 5.0/5.1 audio:
ao: pcm
ad: dmo, faad, ffmpeg(ac3, dca, libfaad, liba52), pcm
ae: faac, lavc(ac3, libfaac), pcm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25343 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 16:53:30 +00:00
ulion 098170a7e2 Prevent from outputing mass of 'skip' log messages in verbose level.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25306 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-05 18:24:40 +00:00
diego fe27bf007b Use correct printf length modifiers, fixes the following warnings:
ve_vfw.c: In function 'vfw_start_encoder':
ve_vfw.c:182: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:183: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:184: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:187: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
ve_vfw.c:188: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:190: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:191: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:192: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:195: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
ve_vfw.c:196: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:216: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:217: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:218: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:221: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long int'
ve_vfw.c:222: warning: format '%d' expects type 'int', but argument 4 has type 'long int'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25290 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 23:38:51 +00:00
rfelker ae9db277c7 10l, len may change after initialization time
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25282 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 09:57:21 +00:00
rfelker 4bceedee93 fix declaration after statement, take 2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25281 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 09:07:31 +00:00
rfelker aef0374c1c fix declaration after statement
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25280 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-03 09:03:45 +00:00
reimar b8a403f124 Make m_option_t arrays referenced by cfg-common.h const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25269 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 21:26:23 +00:00
reimar c3fc57f402 Add appropriate const specifiers to some custom parse functions.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25260 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 16:40:20 +00:00
reimar 41ac28984c get/set video colors string is constant
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25252 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 15:23:14 +00:00
reimar eff331a805 vf_equalizer_t string is constant
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25251 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 15:22:06 +00:00
reimar b95c80ca86 Make all vf_info_t structs const
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25249 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:57:15 +00:00
reimar 844c8ffc48 Mark several uses of vo_functions_t as const to stop some of the current
hacks e.g. in vidix code from spreading.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25247 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:24:23 +00:00
reimar bbab104b7e Remove completely outdated commented-out code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25246 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-02 14:17:45 +00:00
reimar 06c5d53f45 Add support for Apple's yuv2 raw format
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25210 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-30 11:31:31 +00:00
ulion facdbc77aa Fix warnings:
ad_hwac3.c: In function 'decode_audio_dts':
ad_hwac3.c:499: warning: passing argument 1 of 'convert_14bits_to_16bits' from incompatible pointer type
ad_hwac3.c:499: warning: passing argument 2 of 'convert_14bits_to_16bits' from incompatible pointer type


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25177 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-27 00:33:59 +00:00
reimar a4533bdb84 Simplify convert_14bits_to_16bits function in ad_hwac3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25167 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-26 19:01:34 +00:00
ulion 33ae3abe14 Support convert 14-bit DTS stream into 16-bit stream if needed,
so we have space to add the IEC header for it.
DTS WAV/CD normally is 14-bit LE format, now we can passthrough it.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25152 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-24 01:35:29 +00:00
ulion 0d8f770724 Make hwdts support more dts format identification, 14bits or 16bits, LE or BE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25130 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-21 09:41:07 +00:00
reimar cc11fc77b3 Replace stupid "unsigned long" by the correct uint32_t.
Makes 2xsai work on 64 bit architectures (displayed video doubled horizontally
before).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25032 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-12 20:44:06 +00:00
reimar facd2c58a6 Use proper inttypes.h types instead of broken uint32 etc. defines
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25031 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-12 20:40:13 +00:00
diego be69c6d145 Add missing header files, fixes the warnings:
In file included from vf_mcdeint.c:59:
../libavcodec/dsputil.h: In function 'copy_block2':
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16'
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16'
../libavcodec/dsputil.h: In function 'copy_block4':
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32'
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32'
In file included from vf_spp.c:40:
../libavcodec/dsputil.h: In function 'copy_block2':
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16'
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16'
../libavcodec/dsputil.h: In function 'copy_block4':
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32'
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25005 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 17:20:27 +00:00
diego c97e68b7b1 Add missing header file, fixes the warnings:
In file included from vf_fspp.c:46:
../libavcodec/dsputil.h: In function 'copy_block2':
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16'
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16'
../libavcodec/dsputil.h: In function 'copy_block4':
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32'
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25004 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 17:17:48 +00:00
diego 4c67136240 Remove misleading comment and remove unnecessary #includes.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25003 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 16:28:37 +00:00
diego 8c2f371e19 Rearrange headers to get rid of an #undef and remove unnecessary headers.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25002 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 15:44:47 +00:00
diego e20855c92e Remove unnecessary dsputil.h #include, fixes the warnings:
In file included from vf_uspp.c:33:
../libavcodec/dsputil.h: In function 'copy_block2':
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_WN16'
../libavcodec/dsputil.h:675: warning: implicit declaration of function 'AV_RN16'
../libavcodec/dsputil.h: In function 'copy_block4':
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_WN32'
../libavcodec/dsputil.h:686: warning: implicit declaration of function 'AV_RN32'


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25001 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-09 15:39:08 +00:00