Revision c07c6f81 libavformat/rtsp.c

View differences:

libavformat/rtsp.c
612 612
static void *rtsp_rtp_mux_open(AVFormatContext *s, AVStream *st,
613 613
                               URLContext *handle)
614 614
{
615
    RTSPState *rt = s->priv_data;
615 616
    AVFormatContext *rtpctx;
616 617
    int ret;
617 618
    AVOutputFormat *rtp_format = av_guess_format("rtp", NULL, NULL);
......
634 635
    /* Copy other stream parameters. */
635 636
    rtpctx->streams[0]->sample_aspect_ratio = st->sample_aspect_ratio;
636 637

  
638
    /* Set the synchronized start time. */
639
    rtpctx->start_time_realtime = rt->start_time;
640

  
637 641
    /* Remove the local codec, link to the original codec
638 642
     * context instead, to give the rtp muxer access to
639 643
     * codec parameters. */
......
1340 1344
    char *sdp;
1341 1345
    AVFormatContext sdp_ctx, *ctx_array[1];
1342 1346

  
1347
    rt->start_time = av_gettime();
1348

  
1343 1349
    /* Announce the stream */
1344 1350
    snprintf(cmd, sizeof(cmd),
1345 1351
             "ANNOUNCE %s RTSP/1.0\r\n"

Also available in: Unified diff