summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-30 00:21:42 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-30 00:21:42 +0000
commit58bd615ff5b38b614822569360f66989a9159491 (patch)
treed04aeeef927821f03f6e3e42ab1c70dbb59f3bf7
parent7e14f14584939ec0dc822ae6fa91355f9c307913 (diff)
downloadffmpeg-streaming-58bd615ff5b38b614822569360f66989a9159491.zip
ffmpeg-streaming-58bd615ff5b38b614822569360f66989a9159491.tar.gz
set is_streamed before writing data to output file
Originally committed as revision 13543 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index bf7b5ca..f7288d0 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2164,6 +2164,7 @@ static int http_prepare_data(HTTPContext *c)
/* XXX: potential leak */
return -1;
}
+ c->fmt_ctx.pb->is_streamed = 1;
if (pkt.dts != AV_NOPTS_VALUE)
pkt.dts = av_rescale_q(pkt.dts,
c->fmt_in->streams[pkt.stream_index]->time_base,
@@ -2201,6 +2202,7 @@ static int http_prepare_data(HTTPContext *c)
/* XXX: potential leak */
return -1;
}
+ c->fmt_ctx.pb->is_streamed = 1;
av_write_trailer(ctx);
len = url_close_dyn_buf(ctx->pb, &c->pb_buffer);
c->buffer_ptr = c->pb_buffer;
OpenPOWER on IntegriCloud