Commit 236a35fa authored by bcoudurier's avatar bcoudurier

set is_streamed before writing data to output file

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