forked from FFmpeg/FFmpeg
fix source stream, source_index is refering to fmt_in, needs testing
Originally committed as revision 13902 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d80904cc87
commit
250be719e4
1 changed files with 1 additions and 1 deletions
|
@ -2168,7 +2168,7 @@ static int http_prepare_data(HTTPContext *c)
|
||||||
if (c->is_packetized) {
|
if (c->is_packetized) {
|
||||||
AVStream *st;
|
AVStream *st;
|
||||||
/* compute send time and duration */
|
/* 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);
|
c->cur_pts = av_rescale_q(pkt.dts, st->time_base, AV_TIME_BASE_Q);
|
||||||
if (st->start_time != AV_NOPTS_VALUE)
|
if (st->start_time != AV_NOPTS_VALUE)
|
||||||
c->cur_pts -= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);
|
c->cur_pts -= av_rescale_q(st->start_time, st->time_base, AV_TIME_BASE_Q);
|
||||||
|
|
Loading…
Add table
Reference in a new issue