Originally committed as revision 13903 to svn://svn.ffmpeg.org/ffmpeg/trunk
Baptiste Coudurier authored on 2008/06/23 12:18:24... | ... |
@@ -2166,13 +2166,11 @@ static int http_prepare_data(HTTPContext *c) |
2166 | 2166 |
output stream (one for each RTP |
2167 | 2167 |
connection). XXX: need more abstract handling */ |
2168 | 2168 |
if (c->is_packetized) { |
2169 |
- AVStream *st; |
|
2170 | 2169 |
/* compute send time and duration */ |
2171 |
- st = c->fmt_in->streams[source_index]; |
|
2172 |
- c->cur_pts = av_rescale_q(pkt.dts, st->time_base, AV_TIME_BASE_Q); |
|
2173 |
- if (st->start_time != AV_NOPTS_VALUE) |
|
2174 |
- c->cur_pts -= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q); |
|
2175 |
- c->cur_frame_duration = av_rescale_q(pkt.duration, st->time_base, AV_TIME_BASE_Q); |
|
2170 |
+ c->cur_pts = av_rescale_q(pkt.dts, ist->time_base, AV_TIME_BASE_Q); |
|
2171 |
+ if (ist->start_time != AV_NOPTS_VALUE) |
|
2172 |
+ c->cur_pts -= av_rescale_q(ist->start_time, ist->time_base, AV_TIME_BASE_Q); |
|
2173 |
+ c->cur_frame_duration = av_rescale_q(pkt.duration, ist->time_base, AV_TIME_BASE_Q); |
|
2176 | 2174 |
#if 0 |
2177 | 2175 |
printf("index=%d pts=%0.3f duration=%0.6f\n", |
2178 | 2176 |
pkt.stream_index, |