Commit 9f747010 authored by alex's avatar alex

rescale pts/dts for output format

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8111 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e921d87f
......@@ -2175,6 +2175,14 @@ static int http_prepare_data(HTTPContext *c)
/* XXX: potential leak */
return -1;
}
if (pkt.dts != AV_NOPTS_VALUE)
pkt.dts = av_rescale_q(pkt.dts,
c->fmt_in->streams[pkt.stream_index]->time_base,
ctx->streams[pkt.stream_index]->time_base);
if (pkt.pts != AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(pkt.pts,
c->fmt_in->streams[pkt.stream_index]->time_base,
ctx->streams[pkt.stream_index]->time_base);
if (av_write_frame(ctx, &pkt)) {
c->state = HTTPSTATE_SEND_DATA_TRAILER;
}
......
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