mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
rescale pts/dts for output format
Originally committed as revision 8111 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
f75cdda718
commit
f1debfd0bd
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user