mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-21 23:10:13 +00:00
rescale duration when outputting packet
Originally committed as revision 13845 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
050056d08c
commit
b43bf8acf1
@ -2173,6 +2173,9 @@ static int http_prepare_data(HTTPContext *c)
|
||||
pkt.pts = av_rescale_q(pkt.pts,
|
||||
c->fmt_in->streams[source_index]->time_base,
|
||||
ctx->streams[pkt.stream_index]->time_base);
|
||||
pkt.duration = av_rescale_q(pkt.duration,
|
||||
c->fmt_in->streams[source_index]->time_base,
|
||||
ctx->streams[pkt.stream_index]->time_base);
|
||||
if (av_write_frame(ctx, &pkt) < 0) {
|
||||
http_log("Error writing frame to output\n");
|
||||
c->state = HTTPSTATE_SEND_DATA_TRAILER;
|
||||
|
Loading…
Reference in New Issue
Block a user