mirror of https://git.ffmpeg.org/ffmpeg.git
only write trailer when state says so, should fix issue #646
Originally committed as revision 15398 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
26f5e1469f
commit
637b638e1e
|
@ -796,7 +796,7 @@ static void close_connection(HTTPContext *c)
|
|||
|
||||
ctx = &c->fmt_ctx;
|
||||
|
||||
if (!c->last_packet_sent) {
|
||||
if (!c->last_packet_sent && c->state == HTTPSTATE_SEND_DATA_TRAILER) {
|
||||
if (ctx->oformat) {
|
||||
/* prepare header */
|
||||
if (url_open_dyn_buf(&ctx->pb) >= 0) {
|
||||
|
|
Loading…
Reference in New Issue