# HG changeset patch # User cehoyos # Date 1175396447 0 # Node ID e878a71cb27f2adb96d3ed454b717f6f8f5c6f3a # Parent 9a1e26fef45b0a71e35adfaf0242213ff4b98a96 Cosmetics: Move variable declaration and initialization up. diff -r 9a1e26fef45b -r e878a71cb27f libmpdemux/demux_rtp.cpp --- a/libmpdemux/demux_rtp.cpp Sun Apr 01 00:02:43 2007 +0000 +++ b/libmpdemux/demux_rtp.cpp Sun Apr 01 03:00:47 2007 +0000 @@ -373,10 +373,11 @@ 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