changeset 22851:e878a71cb27f

Cosmetics: Move variable declaration and initialization up.
author cehoyos
date Sun, 01 Apr 2007 03:00:47 +0000
parents 9a1e26fef45b
children d7f4da5e9ee4
files libmpdemux/demux_rtp.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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