To avoid warnings, both values in CHECK_xx() must be the same type.
LOCAL_CFLAGS += -D__STDC_CONSTANT_MACROS=1 -D__STDINT_LIMITS=1
+# Quiet some noise
+LOCAL_CFLAGS += -Wno-deprecated-declarations -Wno-unused-parameter
+LOCAL_CLANG_CFLAGS += -Wno-unknown-attributes
+
LOCAL_MODULE_TAGS := optional
sp<MetaData> meta = NULL;
avctx = stream->codec;
- CHECK_EQ(avctx->codec_type, AVMEDIA_TYPE_VIDEO);
+ CHECK_EQ((int)avctx->codec_type, (int)AVMEDIA_TYPE_VIDEO);
switch(avctx->codec_id) {
case AV_CODEC_ID_H264:
sp<MetaData> meta = NULL;
avctx = stream->codec;
- CHECK_EQ(avctx->codec_type, AVMEDIA_TYPE_AUDIO);
+ CHECK_EQ((int)avctx->codec_type, (int)AVMEDIA_TYPE_AUDIO);
switch(avctx->codec_id) {
case AV_CODEC_ID_MP2:
int len = 0;
int gotFrm = false;
int32_t ret = ERR_OK;
- int32_t inputBufferUsedLength = 0;
+ uint32_t inputBufferUsedLength = 0;
bool is_flush = (mEOSStatus == OUTPUT_FRAMES_FLUSHED);
List<BufferInfo *> &inQueue = getPortQueue(kInputPortIndex);
BufferInfo *inInfo = NULL;
drainEOSOutputBuffer();
return;
} else {
- CHECK_EQ(err, ERR_OK);
+ CHECK_EQ(err, (int32_t)ERR_OK);
}
}
CHECK_EQ(mResampledDataSize, 0);
continue;
} else {
- CHECK_EQ(err, ERR_OK);
+ CHECK_EQ(err, (int32_t)ERR_OK);
}
}
} else if (err == ERR_NO_FRM) {
continue;
} else {
- CHECK_EQ(err, ERR_OK);
+ CHECK_EQ(err, (int32_t)ERR_OK);
}
if (drainOneOutputBuffer() != ERR_OK) {
notify(OMX_EventError, OMX_ErrorUndefined, 0, NULL);
} else if (err == ERR_NO_FRM) {
continue;
} else {
- CHECK_EQ(err, ERR_OK);
+ CHECK_EQ(err, (int32_t)ERR_OK);
}
if (handlePortSettingsChange()) {
# Clang when included from C++
LOCAL_CLANG_CFLAGS += -DAVUTIL_ARM_INTREADWRITE_H
-# Quiet some noise from FFMPEG
-LOCAL_CLANG_CFLAGS += -Wno-unknown-attributes -Wno-deprecated-declarations
-
include $(BUILD_SHARED_LIBRARY)
namespace android {
static void EncodeSize14(uint8_t **_ptr, size_t size) {
- CHECK_LE(size, 0x3fff);
+ CHECK_LE(size, 0x3fffu);
uint8_t *ptr = *_ptr;
{
ALOGV("AVC");
- CHECK_EQ(avctx->codec_id, AV_CODEC_ID_H264);
CHECK_GT(avctx->extradata_size, 0);
- CHECK_EQ(avctx->extradata[0], 1); //configurationVersion
+ CHECK_EQ((int)avctx->extradata[0], 1); //configurationVersion
if (avctx->width == 0 || avctx->height == 0) {
int32_t width, height;
{
ALOGV("H264");
- CHECK_EQ(avctx->codec_id, AV_CODEC_ID_H264);
- CHECK_NE(avctx->extradata[0], 1); //configurationVersion
+ CHECK_NE((int)avctx->extradata[0], 1); //configurationVersion
sp<ABuffer> buffer = new ABuffer(avctx->extradata_size);
memcpy(buffer->data(), avctx->extradata, avctx->extradata_size);