Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(318)

Unified Diff: webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c

Issue 1182493006: Fix AppRTCDemo crash under iOS armv7 devices (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: format change. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c
diff --git a/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c b/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c
index 614e16982ea1ad887d040fb4d39cebf4ba497afc..20f80aefec74ebd801326da165db1065a36457e2 100644
--- a/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c
+++ b/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c
@@ -29,12 +29,13 @@ void WebRtcIsacfix_AllpassFilter2FixDec16Neon(
int16x4_t factorv;
int16x4_t datav;
int32x4_t statev;
- int32x2_t tmp;
// Load factor_ch1 and factor_ch2.
- tmp = vld1_dup_s32((int32_t*)factor_ch1);
- tmp = vld1_lane_s32((int32_t*)factor_ch2, tmp, 1);
- factorv = vreinterpret_s16_s32(tmp);
+ factorv = vld1_dup_s16(factor_ch1);
+ factorv = vld1_lane_s16(factor_ch1 + 1, factorv, 1);
+ factorv = vld1_lane_s16(factor_ch2, factorv, 2);
+ factorv = vld1_lane_s16(factor_ch2 + 1, factorv, 3);
+
// Load filter_state_ch1[0] and filter_state_ch2[0].
statev = vld1q_dup_s32(filter_state_ch1);
statev = vld1q_lane_s32(filter_state_ch2, statev, 2);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698