Commit 72277d65 authored by bcoudurier's avatar bcoudurier

fix source stream, source_index is refering to fmt_in, needs testing

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13902 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ffd46f32
......@@ -2168,7 +2168,7 @@ static int http_prepare_data(HTTPContext *c)
if (c->is_packetized) {
AVStream *st;
/* compute send time and duration */
st = c->fmt_in->streams[pkt.stream_index];
st = c->fmt_in->streams[source_index];
c->cur_pts = av_rescale_q(pkt.dts, st->time_base, AV_TIME_BASE_Q);
if (st->start_time != AV_NOPTS_VALUE)
c->cur_pts -= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment