Commit 2dba639c authored by bcoudurier's avatar bcoudurier

rescale duration when outputing packet

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13845 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4dc8a18c
......@@ -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;
......
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