]> git.sesse.net Git - ffmpeg/commitdiff
rtsp: Remove the start_time field from RTSPState, use AVFormatContext->start_time_rea...
authorMartin Storsjö <martin@martin.st>
Fri, 8 Oct 2010 08:50:29 +0000 (08:50 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 8 Oct 2010 08:50:29 +0000 (08:50 +0000)
Originally committed as revision 25408 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c
libavformat/rtsp.h

index bdbc7ebb741462a25db5c9e96281b03835ba2b02..6ddf149582730d647546e93cfb2f2f9a838fbc39 100644 (file)
@@ -505,7 +505,6 @@ void ff_rtsp_close_streams(AVFormatContext *s)
 static void *rtsp_rtp_mux_open(AVFormatContext *s, AVStream *st,
                                URLContext *handle)
 {
-    RTSPState *rt = s->priv_data;
     AVFormatContext *rtpctx;
     int ret;
     AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
@@ -529,7 +528,7 @@ static void *rtsp_rtp_mux_open(AVFormatContext *s, AVStream *st,
     rtpctx->streams[0]->sample_aspect_ratio = st->sample_aspect_ratio;
 
     /* Set the synchronized start time. */
-    rtpctx->start_time_realtime = rt->start_time;
+    rtpctx->start_time_realtime = s->start_time_realtime;
 
     /* Remove the local codec, link to the original codec
      * context instead, to give the rtp muxer access to
@@ -1333,7 +1332,7 @@ static int rtsp_setup_output_streams(AVFormatContext *s, const char *addr)
     char *sdp;
     AVFormatContext sdp_ctx, *ctx_array[1];
 
-    rt->start_time = av_gettime();
+    s->start_time_realtime = av_gettime();
 
     /* Announce the stream */
     sdp = av_mallocz(SDP_MAX_SIZE);
index 3d2c67818e6a1955fa4a6138326f25e151eeaa62..3e426a07b7378050e61ff8cc0f0d45ab95592532 100644 (file)
@@ -295,9 +295,6 @@ typedef struct RTSPState {
      * other cases, this is a copy of AVFormatContext->filename. */
     char control_uri[1024];
 
-    /** The synchronized start time of the output streams. */
-    int64_t start_time;
-
     /** Additional output handle, used when input and output are done
      * separately, eg for HTTP tunneling. */
     URLContext *rtsp_hd_out;