diff options
Diffstat (limited to 'arm-wt-22k/lib_src/eas_wtsynth.c')
-rw-r--r-- | arm-wt-22k/lib_src/eas_wtsynth.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arm-wt-22k/lib_src/eas_wtsynth.c b/arm-wt-22k/lib_src/eas_wtsynth.c index 45cf4b1..9257951 100644 --- a/arm-wt-22k/lib_src/eas_wtsynth.c +++ b/arm-wt-22k/lib_src/eas_wtsynth.c @@ -28,6 +28,9 @@ */ // includes +#include "log/log.h" +#include <cutils/log.h> + #include "eas_data.h" #include "eas_report.h" #include "eas_host.h" @@ -467,6 +470,11 @@ EAS_BOOL WT_CheckSampleEnd (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pWTIntFrame, E } else { pWTIntFrame->numSamples = numSamples; } + if (pWTIntFrame->numSamples < 0) { + ALOGE("b/26366256"); + android_errorWriteLog(0x534e4554, "26366256"); + pWTIntFrame->numSamples = 0; + } /* sound will be done this frame */ done = EAS_TRUE; |