[MPlayer-dev-eng] AltiVec - Fixes
Marcin Kurek
morgoth6 at box43.pl
Sat May 29 21:29:52 CEST 2004
Hell[o]
It seems that current CVS version (May 29 2004) has some problems when build for PPC && AltiVec systems. Generaly the problems are located in 'libavcodec' part and there is also small problem in mplayer code.
A) libavcodec/svq1.c:969
-> const int8_t *vector;
This definition makes GCC to fail badly because 'vector' is a keyword when compiling with AltiVec support and can't be used as variable name. The fix is trivial anyway.
B) libavcodec/libpostproc/postprocess.c:704
-> else if(c->cpuCaps & PP_CPU_CAPS_ALTIVEC)
This is simple typo and makes compilation to fail (Another time only for AltiVec compilation) because of 'else' keyword, it should be 'if' not 'else if'. Another trivial fix.
Also there is a warning about this file say's that all GCC version fails when compile this source file. I was able to compile it without any problems using GCC 3.4.0 (CVS - 20040516)
C) postproc/swscale_altivec_template.c:23-34
There is missing 'const' kayword in both parts (linux && darwin).
Makes GCC to fail badly.
In attachment there is two patches (One for mplayer and one for ffmpeg) that makes possible to compile MPlayer with AltiVec support.
Now I have fully working AltiVec optimized MPlayer1.0pre5 :)
Regards
--
:: Morgoth/Dreamolers-CAPS ::
::: Homepage # http://dreamolers.meanmachine.ch :::
:: Email # morgoth at morphos.net ::
::: GG # 3681372 :::
:: Pegasos User&Developer ::
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg-avfix.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040529/e137142b/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer-avfix.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040529/e137142b/attachment.asc>
More information about the MPlayer-dev-eng
mailing list