diff options
Diffstat (limited to 'cmds')
| -rw-r--r-- | cmds/screenrecord/TextRenderer.cpp | 2 | ||||
| -rw-r--r-- | cmds/stagefright/SineSource.h | 5 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/cmds/screenrecord/TextRenderer.cpp b/cmds/screenrecord/TextRenderer.cpp index 6a9176b..01f73e0 100644 --- a/cmds/screenrecord/TextRenderer.cpp +++ b/cmds/screenrecord/TextRenderer.cpp @@ -21,6 +21,8 @@  #include "TextRenderer.h"  #include <assert.h> +#include <malloc.h> +#include <string.h>  namespace android {  #include "FontBitmap.h" diff --git a/cmds/stagefright/SineSource.h b/cmds/stagefright/SineSource.h index 76ab669..be05661 100644 --- a/cmds/stagefright/SineSource.h +++ b/cmds/stagefright/SineSource.h @@ -3,10 +3,11 @@  #define SINE_SOURCE_H_  #include <media/stagefright/MediaSource.h> +#include <utils/Compat.h>  namespace android { -struct MediaBufferGroup; +class MediaBufferGroup;  struct SineSource : public MediaSource {      SineSource(int32_t sampleRate, int32_t numChannels); @@ -24,7 +25,7 @@ protected:  private:      enum { kBufferSize = 8192 }; -    static const double kFrequency = 500.0; +    static const CONSTEXPR double kFrequency = 500.0;      bool mStarted;      int32_t mSampleRate;  | 
