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) {
////////////////////////////////////////////////////
//STUB
AMediaFormat *AMediaFormat_new(){
AMediaFormat *AMediaFormat_new(void){
AMediaFormat *format=ms_new0(AMediaFormat,1);
JNIEnv *env = ms_get_jni_env();
jobject jformat = NULL;
......
......@@ -38,7 +38,7 @@ extern "C" {
struct AMediaFormat;
typedef struct AMediaFormat AMediaFormat;
AMediaFormat *AMediaFormat_new();
AMediaFormat *AMediaFormat_new(void);
media_status_t AMediaFormat_delete(AMediaFormat*);
/**
......
......@@ -307,6 +307,10 @@ static void dec_process(MSFilter *f) {
ms_queue_init(&nalus);
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);
if (!(unpacking_ret & Rfc3984FrameAvailable)) continue;
......@@ -325,9 +329,6 @@ static void dec_process(MSFilter *f) {
ms_queue_flush(&nalus);
continue;
}
int size;
uint8_t *buf = NULL;
ssize_t iBufidx;
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