changeset 9910:41ed68e3a034

Minor code cleanup.
author rsf
date Sat, 12 Apr 2003 09:29:13 +0000
parents dab2b1d95244
children fa45d335a43b
files libmpdemux/demux_rtp_codec.cpp
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_rtp_codec.cpp	Fri Apr 11 17:38:51 2003 +0000
+++ b/libmpdemux/demux_rtp_codec.cpp	Sat Apr 12 09:29:13 2003 +0000
@@ -196,7 +196,7 @@
   extern float force_fps; if (force_fps != 0.0) return; // user used "-fps"
 
   demux_stream_t* d_video = demuxer->video;
-  sh_video_t* sh_video = (sh_video_t*)(demuxer->video->sh);
+  sh_video_t* sh_video = (sh_video_t*)(d_video->sh);
 
   // If we already know the subsession's video frame rate, use it:
   int fps = (int)(subsession->videoFPS());
@@ -211,8 +211,9 @@
   float lastPTS = 0.0, curPTS;
   unsigned const maxNumFramesToWaitFor = 100;
   for (unsigned i = 0; i < maxNumFramesToWaitFor; ++i) {
-    if (!awaitRTPPacket(demuxer, demuxer->video,
-			packetData, packetDataLen, curPTS)) break;
+    if (!awaitRTPPacket(demuxer, d_video, packetData, packetDataLen, curPTS)) {
+      break;
+    }
 
     if (curPTS > lastPTS && lastPTS != 0.0) {
       // Use the difference between these two "pts"s to guess the frame rate.