From 0d08e5f4353bc7fbf91a618698808494f44e303f Mon Sep 17 00:00:00 2001 From: pl Date: Tue, 25 Dec 2001 16:38:07 +0000 Subject: [PATCH] warning fix git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3734 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_viv.c | 4 ++-- libmpdemux/rtp.c | 2 ++ 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. */