]> git.sesse.net Git - ffmpeg/commit
libavcodec/ppc: Fix HEVC AltiVec routines with --enable-small
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Sat, 21 Jul 2018 05:42:00 +0000 (00:42 -0500)
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>
Sat, 21 Jul 2018 11:36:24 +0000 (13:36 +0200)
commit153fcd6de6ba558a3720c64589a7e4e9e4d62420
treeca8c3f40e74d3066b86e659f1cc6c7cadb28e6d1
parent3870ed7ab3e60d6f5da8cc4dc395be5374fedc96
libavcodec/ppc: Fix HEVC AltiVec routines with --enable-small

GCC requires the argument to vec_splat_u32 to be a literal.  The easiest
way to accomplish this is to change 'shift' to be const in scale (as it
is in the transform routine above), and convert both routines to be
inline.  This way, GCC can coerce the values to literals.

Tested on a 970 (Apple G5) and POWER9 (Talos II); passed fate and played
a clip of Big Buck Bunny correctly.

Fixes ticket #7048

Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
libavcodec/ppc/hevcdsp.c