aboutsummaryrefslogtreecommitdiffhomepage
path: root/libmpdemux
diff options
context:
space:
mode:
authorGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-27 21:16:54 +0000
committerGravatar nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-27 21:16:54 +0000
commite4fbdd185e7db5e62b8c4b3fc589d5276a9ca38a (patch)
tree17b392cebb8f46b9e7521ded65f00d5397231ec6 /libmpdemux
parent5ad12e4fbb5f24aff309fc764c590ae70e73f82f (diff)
1000l, removed code that messed with the internals of demux_packet_t (but there's still more); patch by C.E.Hoyos fixed by me
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22371 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/demux_rtp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index b1d49870a0..3d483837ac 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -348,7 +348,6 @@ Boolean insertRTPData(demuxer_t* demuxer, demux_stream_t* ds,
// Copy our data into the buffer, and save it:
memmove(dp->buffer, data, dataLen);
- dp->len = dataLen;
dp->pts = 0;
bufferQueue->savePendingBuffer(dp);
return True;
@@ -402,7 +401,7 @@ static void afterReading(void* clientData, unsigned frameSize,
if (frameSize > 0) demuxer->stream->eof = 0;
demux_packet_t* dp = bufferQueue->dp;
- dp->len = frameSize;
+ resize_demux_packet(dp, frameSize);
// Set the packet's presentation time stamp, depending on whether or
// not our RTP source's timestamps have been synchronized yet: