OSDN Git Service

compile fixes, include bug "error: 'INT64_MIN' was not declared in this scope"
authorMichael Chen <omxcodec@gmail.com>
Mon, 22 Oct 2012 16:59:04 +0000 (00:59 +0800)
committerMichael Chen <omxcodec@gmail.com>
Mon, 22 Oct 2012 16:59:04 +0000 (00:59 +0800)
ffmpeg_utils/ffmpeg_utils.cpp
libstagefright/FFmpegExtractor/Android.mk
libstagefright/FFmpegExtractor/FFmpegExtractor.h
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.cpp
libstagefright/codecs/ffmpegdec/vdec/SoftFFmpegVideo.h

index f694ff7..f83e359 100644 (file)
@@ -25,7 +25,6 @@ extern "C" {
 #include <stdlib.h>
 #include <inttypes.h>
 #include <math.h>
-#include <limits.h>
 #include <signal.h>
 #include <limits.h> /* INT_MAX */
 
@@ -169,13 +168,18 @@ extern "C" {
 
 #include "cmdutils.h"
 
+const char program_name[] = "dummy";
+const int program_birth_year = 2012;
+
 void av_noreturn exit_program(int ret)
 {
     // do nothing
 }
 
-const char program_name[] = "dummy";
-const int program_birth_year = 2012;
+void show_help_default(const char *opt, const char *arg)
+{
+    // do nothing
+}
 
 #ifdef __cplusplus
 }
index 3ced619..4e7db47 100644 (file)
@@ -63,6 +63,6 @@ ifeq ($(TARGET_ARCH),arm)
     LOCAL_CFLAGS += -Wno-psabi
 endif
 
-LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS=1
+LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS=1 -D__STDINT_LIMITS=1
 
 include $(BUILD_SHARED_LIBRARY)
index 4ea2e61..e0d9826 100644 (file)
@@ -29,7 +29,7 @@ extern "C" {
 
 #include <inttypes.h>
 #include <math.h>
-#include <limits.h>
+#include <limits.h> /* INT_MAX */
 #include <signal.h>
 #include <limits.h> /* INT_MAX */
 
index 636d8f4..b304d0f 100644 (file)
@@ -217,7 +217,7 @@ void SoftFFmpegVideo::deInitFFmpeg() {
 }
 
 
-void SoftFFmpegVideo::setAVCtxToDefault(AVCodecContext *avctx, AVCodec *codec) {
+void SoftFFmpegVideo::setAVCtxToDefault(AVCodecContext *avctx, const AVCodec *codec) {
     int fast = 0;
 
     avctx->workaround_bugs   = 1;
index f9b308b..49a003d 100644 (file)
@@ -116,7 +116,7 @@ private:
 
     status_t initFFmpeg();
     void deInitFFmpeg();
-    void setAVCtxToDefault(AVCodecContext *avctx, AVCodec *codec);
+    void setAVCtxToDefault(AVCodecContext *avctx, const AVCodec *codec);
 
     void initPorts();
     status_t initDecoder();