summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_rtp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/demux_rtp.cpp')
-rw-r--r--libmpdemux/demux_rtp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpdemux/demux_rtp.cpp b/libmpdemux/demux_rtp.cpp
index 8766f3596b..3df37cfd7a 100644
--- a/libmpdemux/demux_rtp.cpp
+++ b/libmpdemux/demux_rtp.cpp
@@ -373,10 +373,11 @@ static void afterReading(void* clientData, unsigned frameSize,
if (frameSize > 0) demuxer->stream->eof = 0;
+ demux_packet_t* dp = bufferQueue->dp;
+
if (bufferQueue->readSource()->isAMRAudioSource())
headersize = 1;
- demux_packet_t* dp = bufferQueue->dp;
resize_demux_packet(dp, frameSize + headersize);
// Set the packet's presentation time stamp, depending on whether or