[FFmpeg-cvslog] avutil/ppc/cpu: Our code assumes vsx implies altivec, thus assert this
Michael Niedermayer
git at videolan.org
Wed Jun 3 18:24:29 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 3 18:14:38 2015 +0200| [cdc0087969b0dda69a8b7cfc4ec1c3e17e5d8177] | committer: Michael Niedermayer
avutil/ppc/cpu: Our code assumes vsx implies altivec, thus assert this
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdc0087969b0dda69a8b7cfc4ec1c3e17e5d8177
---
libavutil/ppc/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavutil/ppc/cpu.c b/libavutil/ppc/cpu.c
index cd90b3f..4353a25 100644
--- a/libavutil/ppc/cpu.c
+++ b/libavutil/ppc/cpu.c
@@ -96,6 +96,8 @@ int ff_get_cpu_flags_ppc(void)
if (buf[i + 1] & PPC_FEATURE_HAS_POWER8)
ret |= AV_CPU_FLAG_POWER8;
#endif
+ if (ret & AV_CPU_FLAG_VSX)
+ av_assert0(ret & AV_CPU_FLAG_ALTIVEC);
goto out;
}
}
More information about the ffmpeg-cvslog
mailing list