summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-18 09:15:32 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-18 09:15:32 +0000
commit5763ed69ac07e6a56c97ef31cfb37301cc1595db (patch)
treee18383956ce5f4dbf63f86859f2ae624e422072f /libmpdemux
parented522600d8e4d9cc4898c78fae47b7a1508f6df2 (diff)
downloadmpv-5763ed69ac07e6a56c97ef31cfb37301cc1595db.tar.bz2
mpv-5763ed69ac07e6a56c97ef31cfb37301cc1595db.tar.xz
Silence three warnings.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23575 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_rtp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index bb12ebef0c..f6b7b38829 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -470,7 +470,7 @@ static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
return NULL;
}
- demux_packet_t* dp;
+ demux_packet_t* dp = NULL;
if (!mustGetNewData) {
// Check whether we have a previously-saved buffer that we can use:
dp = bufferQueue->getPendingBuffer();
@@ -491,7 +491,7 @@ static demux_packet_t* getBuffer(demuxer_t* demuxer, demux_stream_t* ds,
extern AVCodecParserContext * h264parserctx;
int consumed, poutbuf_size = 1;
const uint8_t *poutbuf = NULL;
- float lastpts;
+ float lastpts = 0.0;
do {
if (!bufferQueue->nextpacket) {
@@ -580,8 +580,8 @@ static void teardownRTSPorSIPSession(RTPState* rtpState) {
ReadBufferQueue::ReadBufferQueue(MediaSubsession* subsession,
demuxer_t* demuxer, char const* tag)
: prevPacketWasSynchronized(False), prevPacketPTS(0.0), otherQueue(NULL),
- nextpacket(NULL),
- dp(NULL), pendingDPHead(NULL), pendingDPTail(NULL),
+ dp(NULL), nextpacket(NULL),
+ pendingDPHead(NULL), pendingDPTail(NULL),
fReadSource(subsession == NULL ? NULL : subsession->readSource()),
fRTPSource(subsession == NULL ? NULL : subsession->rtpSource()),
fOurDemuxer(demuxer), fTag(strdup(tag)) {