[FFmpeg-cvslog] r13845 - trunk/ffserver.c
bcoudurier
subversion
Sat Jun 21 05:32:38 CEST 2008
Author: bcoudurier
Date: Sat Jun 21 05:32:37 2008
New Revision: 13845
Log:
rescale duration when outputing packet
Modified:
trunk/ffserver.c
Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c (original)
+++ trunk/ffserver.c Sat Jun 21 05:32:37 2008
@@ -2173,6 +2173,9 @@ static int http_prepare_data(HTTPContext
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;
More information about the ffmpeg-cvslog
mailing list