summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmpdemux/demux_viv.c4
-rw-r--r--libmpdemux/rtp.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/libmpdemux/demux_viv.c b/libmpdemux/demux_viv.c
index a9611d2898..1c7b1d5749 100644
--- a/libmpdemux/demux_viv.c
+++ b/libmpdemux/demux_viv.c
@@ -286,8 +286,8 @@ int vivo_check_file(demuxer_t* demuxer){
return 1;
}
-static audio_pos=0;
-static audio_rate=0;
+static int audio_pos=0;
+static int audio_rate=0;
// return value:
// 0 = EOF or no stream found
diff --git a/libmpdemux/rtp.c b/libmpdemux/rtp.c
index 8b3abe4c03..bd15918431 100644
--- a/libmpdemux/rtp.c
+++ b/libmpdemux/rtp.c
@@ -119,10 +119,12 @@ int getrtp(int fd, struct rtpheader *rh, char** data, int* lengthData) {
int i;
lengthPacket=recv(fd,buf,1590,0);
+ // FIXME: error handling to write here
headerSize = 3;
*lengthData = lengthPacket - headerSize;
*data = (char*) buf + headerSize;
fprintf(stderr,"[%d] %02x %x\n",lengthPacket,buf[8],buf[0]);
+ return(0);
}
/* create a sender socket. */