Revision af74c95a libavformat/rtp_mpv.c

View differences:

libavformat/rtp_mpv.c
28 28
void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size)
29 29
{
30 30
    RTPDemuxContext *s = s1->priv_data;
31
    AVStream *st = s1->streams[0];
32 31
    int len, h, max_packet_size;
33 32
    uint8_t *q;
34 33
    int begin_of_slice, end_of_slice, frame_type, temporal_reference;
......
105 104
        q += len;
106 105

  
107 106
        /* 90 KHz time stamp */
108
        s->timestamp = s->base_timestamp +
109
            av_rescale((int64_t)s->cur_timestamp * st->codec->time_base.num, 90000, st->codec->time_base.den); //FIXME pass timestamps
107
        s->timestamp = s->cur_timestamp;
110 108
        ff_rtp_send_data(s1, s->buf, q - s->buf, (len == size));
111 109

  
112 110
        buf1 += len;
......
114 112
        begin_of_slice = end_of_slice;
115 113
        end_of_slice = 0;
116 114
    }
117
    s->cur_timestamp++;
118 115
}
119 116

  
120 117

  

Also available in: Unified diff