Commit 7a2f10ba authored by Simon Morlat's avatar Simon Morlat
Browse files

fix compilation warnings

parent 11a37aa6
...@@ -733,7 +733,7 @@ bool_t AMediaImage_isAvailable(void) { ...@@ -733,7 +733,7 @@ bool_t AMediaImage_isAvailable(void) {
//////////////////////////////////////////////////// ////////////////////////////////////////////////////
//STUB //STUB
AMediaFormat *AMediaFormat_new(){ AMediaFormat *AMediaFormat_new(void){
AMediaFormat *format=ms_new0(AMediaFormat,1); AMediaFormat *format=ms_new0(AMediaFormat,1);
JNIEnv *env = ms_get_jni_env(); JNIEnv *env = ms_get_jni_env();
jobject jformat = NULL; jobject jformat = NULL;
......
...@@ -38,7 +38,7 @@ extern "C" { ...@@ -38,7 +38,7 @@ extern "C" {
struct AMediaFormat; struct AMediaFormat;
typedef struct AMediaFormat AMediaFormat; typedef struct AMediaFormat AMediaFormat;
AMediaFormat *AMediaFormat_new(); AMediaFormat *AMediaFormat_new(void);
media_status_t AMediaFormat_delete(AMediaFormat*); media_status_t AMediaFormat_delete(AMediaFormat*);
/** /**
......
...@@ -307,6 +307,10 @@ static void dec_process(MSFilter *f) { ...@@ -307,6 +307,10 @@ static void dec_process(MSFilter *f) {
ms_queue_init(&nalus); ms_queue_init(&nalus);
while ((im = ms_queue_get(f->inputs[0])) != NULL) { while ((im = ms_queue_get(f->inputs[0])) != NULL) {
int size;
uint8_t *buf = NULL;
ssize_t iBufidx;
unpacking_ret = rfc3984_unpack2(&d->unpacker, im, &nalus); unpacking_ret = rfc3984_unpack2(&d->unpacker, im, &nalus);
if (!(unpacking_ret & Rfc3984FrameAvailable)) continue; if (!(unpacking_ret & Rfc3984FrameAvailable)) continue;
...@@ -325,9 +329,6 @@ static void dec_process(MSFilter *f) { ...@@ -325,9 +329,6 @@ static void dec_process(MSFilter *f) {
ms_queue_flush(&nalus); ms_queue_flush(&nalus);
continue; continue;
} }
int size;
uint8_t *buf = NULL;
ssize_t iBufidx;
if (unpacking_ret & Rfc3984IsKeyFrame) ms_message("MSMediaCodecH264Dec: I-frame received"); if (unpacking_ret & Rfc3984IsKeyFrame) ms_message("MSMediaCodecH264Dec: I-frame received");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment