aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-07-22 12:46:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-22 12:46:13 +0200
commit7cdb3b2b79d78b7b3e686b3a53e904b4656d461f (patch)
tree385b6b788702258652331c138d1e9717087e4253 /libavcodec/arm
parent135ea609cebb5a5d331a2550caebe161d163c190 (diff)
parent6869612f5c7d4d2f20f69a5658328a761deadb1c (diff)
downloadffmpeg-7cdb3b2b79d78b7b3e686b3a53e904b4656d461f.tar.gz
Merge commit '6869612f5c7d4d2f20f69a5658328a761deadb1c'
* commit '6869612f5c7d4d2f20f69a5658328a761deadb1c': arm: Macroize the test for 'setend' CPU instruction support Conflicts: libavcodec/arm/h264dsp_init_arm.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/arm')
-rw-r--r--libavcodec/arm/h264dsp_init_arm.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/arm/h264dsp_init_arm.c b/libavcodec/arm/h264dsp_init_arm.c
index 3999e993ab..2027d1861e 100644
--- a/libavcodec/arm/h264dsp_init_arm.c
+++ b/libavcodec/arm/h264dsp_init_arm.c
@@ -108,12 +108,8 @@ av_cold void ff_h264dsp_init_arm(H264DSPContext *c, const int bit_depth,
{
int cpu_flags = av_get_cpu_flags();
- if (have_armv6(cpu_flags) && !(have_vfpv3(cpu_flags) || have_neon(cpu_flags))) {
- // This function uses the 'setend' instruction which is deprecated
- // on ARMv8. This instruction is serializing on some ARMv7 cores as
- // well. Therefore, only use the function on ARMv6.
+ if (have_setend(cpu_flags))
c->h264_find_start_code_candidate = ff_startcode_find_candidate_armv6;
- }
if (have_neon(cpu_flags))
h264dsp_init_neon(c, bit_depth, chroma_format_idc);
}