]> git.sesse.net Git - ffmpeg/commit
swscale: Fix AltiVec/VSX build with recent GCC
authorDaniel Kolesa <daniel@octaforge.org>
Wed, 7 Aug 2019 17:39:07 +0000 (19:39 +0200)
committerLauri Kasanen <cand@gmx.com>
Fri, 4 Oct 2019 05:58:17 +0000 (08:58 +0300)
commite6625ca41f85ed10b3108d37bd897f0ae063250e
tree5abb277cef34b5a6bfb278e1dff783a99afce5c2
parent1bdb47b73484dd21ee1bf493d79ac26384eda05e
swscale: Fix AltiVec/VSX build with recent GCC

The argument to vec_splat_u16 must be a literal. By making the
function always inline and marking the arguments const, gcc can
turn those into literals, and avoid build errors like:

swscale_vsx.c:165:53: error: argument 1 must be a 5-bit signed literal

Fixes #7861.

Signed-off-by: Daniel Kolesa <daniel@octaforge.org>
Signed-off-by: Lauri Kasanen <cand@gmx.com>
libswscale/ppc/swscale_vsx.c