summaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index 92d7821..de44728 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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;
OpenPOWER on IntegriCloud