diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-06-03 18:14:38 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-03 18:23:59 +0200 |
commit | cdc0087969b0dda69a8b7cfc4ec1c3e17e5d8177 (patch) | |
tree | 418d49fa77b24daeba053958cecb57833af22a2c /libavutil/ppc/cpu.c | |
parent | 9614df4b1529cf956c3b90067dbc0116a57218b8 (diff) | |
download | ffmpeg-streaming-cdc0087969b0dda69a8b7cfc4ec1c3e17e5d8177.zip ffmpeg-streaming-cdc0087969b0dda69a8b7cfc4ec1c3e17e5d8177.tar.gz |
avutil/ppc/cpu: Our code assumes vsx implies altivec, thus assert this
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/ppc/cpu.c')
-rw-r--r-- | libavutil/ppc/cpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } } |