diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:32:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-06-21 03:32:37 +0000 |
commit | b43bf8acf167eaa33d67df00cfbff22d4b95fd91 (patch) | |
tree | c544667e639ae0bdb835a291d1589e389b38e7da /ffserver.c | |
parent | 050056d08cfca91308c8cb959364a2eb1698fd47 (diff) | |
download | ffmpeg-streaming-b43bf8acf167eaa33d67df00cfbff22d4b95fd91.zip ffmpeg-streaming-b43bf8acf167eaa33d67df00cfbff22d4b95fd91.tar.gz |
rescale duration when outputting packet
Originally committed as revision 13845 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |